express-optimized
express-optimized copied to clipboard
what does querystring.js do?
is it just a faster querystring parser?
okay and path-join.js. lol
querystring was modified from node core to separate out the try-catch in querystring.parse().
path-join is basically the posix path.join() from node core, simplified a bit. The two reasons for this are:
path.join()changes behavior depending on whether you're on Windows or not (it uses '' instead of '/' on Windows) which causes problems when you're using it to join url paths for mounted routers- there's a lot of duplicated work in the
pathfunctions, so I just combined some of the code to make it a little more efficient (e.g. no splitting and joining only to split again).
oh god. i think i need path-join as a module! i always do path.join() and some sort of replace(/\/\//, '/') crap
If only... https://github.com/joyent/node/issues/2216