As I suspected, moving setup() outside of the handler had a negligible effect - in fact the test showed a slight drop in performance. :(
Testing from httping. From Berlin to US-East-1: Before: --- https://arb9clq9k9.execute-api.us-east-1.amazonaws.com/unicode/json_example/ ping statistics --- 52 connects, 52 ok, 0.00% failed, time 56636ms round-trip min/avg/max = 59.1/104.8/301.9 ms After: --- https://arb9clq9k9.execute-api.us-east-1.amazonaws.com/unicode/json_example/ ping statistics --- 51 connects, 51 ok, 0.00% failed, time 57306ms round-trip min/avg/max = 61.8/128.7/523.2 ms It was a nice thought though! -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/489869be-cde5-4833-9406-1be565f7900d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.