Gearbox slow

18 views
Skip to first unread message

Juan Antonio Ibáñez

unread,
Apr 17, 2016, 2:17:38 PM4/17/16
to TurboGears
Hello,

   I was serving my apps using Paste in my developing enviroment. I created a new project and I am using Geargox instead but I noticed much speed difference. Gearbox take a lot to server page and JS and CSS included files. Is really gearbox slower thant Paste? Both apps run inside same server and they include same static JS and CSS files.

   I also get one debug line in console for earch file served. Is there any way to disable static files serving log output?

Regards

Alessandro Molina

unread,
Apr 21, 2016, 3:19:02 AM4/21/16
to TurboGears
 Hi,

Gearbox built-in server is only meant for development, it's not meant for production, it's a single thread server.
Adding wsgiref.threaded = true option might slightly improve things as otherwise only one file at time is server, but I definitely suggest you use waitress (by setting use = egg:waitress#main in your .ini) if you want to serve the application through gearbox on production.

About the logging, that's caused by wsgiref itself which gearbox development server uses so it cannot be disabled.





--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Juan Antonio Ibañez Santorum

unread,
Apr 25, 2016, 6:19:20 AM4/25/16
to turbo...@googlegroups.com
Thank you Alessando!

--
You received this message because you are subscribed to a topic in the Google Groups "TurboGears" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbogears/5RiYSHB-iCs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbogears+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages