I've optimized my code to use only lightweight libraries. I'm even using the low level datastore rather than JDO.
And my cold start CPU usage has dropped from about 5 seconds to about 1.5 seconds. However, the time it takes to respond is often about 4.5 seconds, though it varies a lot.
Here are some lines from my logs:
- 03-19 09:16PM 57.368 /donothing 200 4506ms 1516cpu_ms 0kb Mozilla/5.0
- 03-19 09:22PM 54.884 /donothing 200 4452ms 1477cpu_ms 0kb Mozilla/5.0
- 03-19 09:35PM 47.605 /donothing 200 4773ms 1633cpu_ms 0kb Mozilla/5.0
- 03-19 10:23PM 25.637 /donothing 200 2731ms 1477cpu_ms 0kb Mozilla/5.0
What is the app engine doing for those extra 3 seconds that apparently isn't using any CPU?