medialize/URI.js — pull request #122 by gorhill (2013-10-25 17:54:57+00:00)
Title: Using indexOf() instead of Regexp()

Performance improvement seen at (along with the intermediate experiments using binary search):
http://jsperf.com/uri-js-sld-regex-vs-binary-search/4

Memory footprint on my 32-bit OS:
Regexp: > 500K
indexOf: < 20K

A test has been added to ensure all SLD are correctly processed by the new code.