Can you perhaps be clear about how you are running TurboGears. Are you
using internal server (Paste server), or something else? Are you using
any special parameters to change how server runs up?

In whichever hosting mechanism you are using, is TG only running in
one process or across multiple processes. People often get confused by
multi process servers and don't realise that subsequent requests don't
necessarily go to same process and thus you may see a number of
requests be slow if lazy import methods are used.

Graham

On Jul 14, 4:08 am, [EMAIL PROTECTED] wrote:
> its really slow on first load, not sure of actual times, but
> subsequent loads its around 1.5 seconds which is way too long for
> something that simple on the same machine.  Im not sure what could be
> wrong with the setup, everything is right out of the box.  are there
> further steps i am missing?
>
> On Jul 13, 7:03 am, Alberto Valverde <[EMAIL PROTECTED]> wrote:
>
> > [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