Faster alternative to Python's SimpleHTTPServer

Posted by Drew Noakes on Stack Overflow See other posts from Stack Overflow or by Drew Noakes
Published on 2012-10-15T23:27:40Z Indexed on 2012/12/20 11:03 UTC
Read the original article Hit count: 166

Python's SimpleHTTPServer is a great way of serve the contents of the current directory from the command line:

python -m SimpleHTTPServer

However, as far as web servers go, it's very slooooow...

It behaves as though it's single threaded, and occasionally causes timeout errors when loading JavaScript AMD modules using RequireJS. It can take five to ten seconds to load a simple page with no images.

What's a faster alternative that is just as convenient?

© Stack Overflow or respective owner

Related posts about command-line

Related posts about httpserver