Hi group, I was wondering about how to structure my import statements and it's impact, if any, on the memory footprint of mod_python.
I'm importing some modules that i'm sure are huge in memory for certain views. My question is: does it make any difference whether I put the import statement at the top of views.py or inside the view that needs the module. I.e. def foo: import huge module -or- import huge module #<-- at the top of views.py My mod_python instances are using a lot of memory (it seems to me), does the placement of imports make a difference? the view that needs the huge module doesn't get called very often, btw. TIA for any clarification. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---