I ran some speed tests on the method currently used by Amplify to replace URL parameters with passed in data. I found using a regular expression replace with a callback was faster than redefining RegExp's for each item in a data structure.
You can see my perf tests here: http://jsperf.com/quick-templates-compared/2
These two commits handle the change to the faster method.
Changed up replacement mechanism for the URL for faster speed
Small refactor of url replacement changes to bring up to the existing…
… code conventions. Updated bad ajax test that defined requests without a URL