[EMAIL PROTECTED] wrote:
> Hi,
>
> Is it slow only on the first occasion or on all occasions? When you
> run the app
> for the first time, all used python modules (i.e. your project
> modules, tg2 modules
> and all other dependencies) are compiled into byte code by the
> interpreter.
>
> Regards
> Sanjiv
>
> On Jul 13, 6:03 am, [EMAIL PROTECTED] wrote:
>   
>> Sorry if this has been asked and addressed elsewhere...
>>
>> I just got tg2 up and running and just hitting the welcome page takes
>> a while.  in tg1, it was almost instant.  This is all being done from
>> the same machine.
>>
>> Is this just development woes or is there something i need to do to
>> pylons?
>>
>> i have literally one nothing extra to it, just installed and ran
>> paster serve development.ini from defaults.
>>
>>     
PylonsApp (which TG2 uses internally) lazy imports the controller
modules when they're first called so this could explain that the first
request takes noticeably longer than subsequent requests. TG1 on the
other hand loads all controllers on startup. Is this the case or are all
requests served slower? If so I believe there could be something wrong
in your setup because my experience is quite the opposite.

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to