4👍
✅
Comparing performance on GAE vs local machines isn’t really relevant, see Why does Google Cloud SQL (using JDBC) take longer to insert records from Google App Engine than from my personal computer?
Those seconds you see locally aren’t spent just loading the local variables (you can actually measure it and display it in a log message if you’re not convinced), most of it is spent importing all the needed libraries and setting up the django framework (and maybe something else for your app), you’d need to profile it to figure out exactly what’s going on and if/what can be done to significantly improve it.
The typical ways of minimizing the impact of cold start times are:
- scalability configs – have a minimum instance running at all times
- warmup requests (but they’re not 100% effective)
Source:stackexchange.com