try use profiler and show result
On Nov 26, 3:00 am, "大郎" <[EMAIL PROTECTED]> wrote:
> if __name__ == "__main__":
> web.httpserver.runsimple = web.httpserver.runbasic
> web.run(urls, globals(), web.reloader)
>
> # to add this: web.httpserver.runsimple = web.httpserver.runbasic, it will
> be ok, but i found it slow yestoday too, i don't know why.
>
> On Nov 26, 2007 6:01 AM, pragmatic <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I was getting the problem of slow response (> 10 seconds) with files
> > in the static folder on Windows XP. Some on this forum had suggested
> > it was a NetBIOS issue. Wow, what a sidetrack.
>
> > The real problem is that files encoded Windows style (crlf) are not
> > served correctly. To replicate the issue simply use you favorite
> > advanced text editor to change the format from Windows to Unix. Watch
> > your response time drop from 10 seconsd to a few milliseconds.
>
> > Anyone know if that has been fixed?
>
> > In the meantime I'll have to setup GVIM to use unix line endings.
>
> > Regards
>
> --
> 最好的推广便是实际应用
> 最近在学习web.py, 坚持才能进步http://del.icio.us/iexperhttp://twitter.com/qichangxing
> Gtalk: iexper(at)gmail.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---