Re: how to optimize zipimport

2009-04-04 Thread John Machin
On Apr 4, 7:06 pm, "Coonay.appspot" wrote: > On Apr 2, 6:26 pm, John Machin wrote: [snip] > > > i found the the module in the zip reloaded  everytime the code is > > > called,i mean, say ,first time it take me 1 second to call a method in > > > the zip,but it take another 1 second to call the mot

Re: how to optimize zipimport

2009-04-04 Thread Coonay.appspot
On Apr 2, 6:26 pm, John Machin wrote: > On Mar 30, 11:39 pm, Coonay wrote: > > > > > On Mar 26, 1:38 pm, John Machin wrote: > > > > On Mar 26, 2:06 pm, Coonay wrote: > > > > > On Mar 26, 10:41 am, Coonay wrote: > > > > > > in my mudule ,i import another mudule from a zip , > > > > > > when i c

Re: how to optimize zipimport

2009-04-02 Thread John Machin
On Mar 30, 11:39 pm, Coonay wrote: > On Mar 26, 1:38 pm, John Machin wrote: > > > On Mar 26, 2:06 pm, Coonay wrote: > > > > On Mar 26, 10:41 am, Coonay wrote: > > > > > in my mudule ,i import another mudule from a zip , > > > > > when i call  my mudle method,the module in the zip will be impor

Re: how to optimize zipimport

2009-04-02 Thread Gabriel Genellina
En Mon, 30 Mar 2009 09:39:20 -0300, Coonay escribió: On Mar 26, 1:38 pm, John Machin wrote: Why are you explicitly using the zipimport module? In other words, why don't you put the full path of the zip file in sys.path and then just use the normal "import module_in_the_zip" mechanism? Note t

Re: how to optimize zipimport

2009-03-30 Thread Coonay
On Mar 26, 1:38 pm, John Machin wrote: > On Mar 26, 2:06 pm, Coonay wrote: > > > see,the zipimort takes nearly 0.5 second > > > D 03-25 07:53PM 21.374 > > Loading __main__ > > I 03-25 07:53PM 21.455 > > zipimporter('/base/data/home/apps/coonay/1.332322118600950324/ > > django.zip', '') > > ?? zip

how to optimize zipimport

2009-03-26 Thread Coonay
in my mudule ,i import another mudule from a zip , when i call my mudle method,the module in the zip will be import from the zip every time,that slow down the operation, i try to search the some workarodnd or solution but i don't get one, could you help me ? -- http://mail.python.org/mailman/li

Re: how to optimize zipimport

2009-03-25 Thread John Machin
On Mar 26, 2:06 pm, Coonay wrote: > see,the zipimort takes nearly 0.5 second > > D 03-25 07:53PM 21.374 > Loading __main__ > I 03-25 07:53PM 21.455 > zipimporter('/base/data/home/apps/coonay/1.332322118600950324/ > django.zip', '') ?? zipimport.Zipimporter() has one arg, not two. > W 03-25 07:53

Re: how to optimize zipimport

2009-03-25 Thread Coonay
see,the zipimort takes nearly 0.5 second D 03-25 07:53PM 21.374 Loading __main__ I 03-25 07:53PM 21.455 zipimporter('/base/data/home/apps/coonay/1.332322118600950324/ django.zip', '') W 03-25 07:53PM 22.046 appengine_django module On Mar 26, 10:41 am, Coonay wrote: > in my mudule ,i impor