That's quite odd, I recall testing this once, where I created a lambda which had a datetime.now() at the top, and just returned that value. Out of a few calls, it returned two different results, meaning the module was re used "most" of the time. This was tested calling the lambda from the AWS Test itself and not through API Gateway, so perhaps API Gateway is preventing the module from being re used? Could be there anything else that might prevent AWS from re using the module?
El lunes, 29 de febrero de 2016, 21:27:28 (UTC-3), Rich Jones escribió: > > 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/bfd3e770-2b09-4129-9ebd-cd1246a9c33d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.