Anvil server serialization/transit very slow?

See the last item here:

Depending on how you’re doing the import logging, you might not be capturing the time it takes to do all those imports.

Hypothetically, suppose the server function you’re looking at is in ServerModule2. Anvil may first load ServerModule1, which imports pandas, let’s say. Then it loads ServerModule2, which imports pandas, numpy, and gspread. If you only time the imports in ServerModule2, that would only tell you the time it takes to import numpy and gspread because pandas was already imported during the loading of ServerModule1.

2 Likes