Repeating panel is slow to populate

Have you tried to print(datetime.now()) before each step is executed in both the server side and the form code?

It will help you narrow down which step is the slow one.