url: significantly improve the performance of the url module

(landed by @rvagg)

PR-URL: https://github.com/iojs/io.js/pull/1561
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
Petka Antonov authored and Rod Vagg committed 2015-05-01 23:12:52 -07:00
1 parent 57c4cc26e2
commit 3fd7fc429c
6 files changed
+2812 -555

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ exports.Agent = Agent;
exports.request = function(options, cb) {
if (typeof options === 'string') {
options = url.parse(options);
options = url.parse(options).toJSON();
} else {
options = util._extend({}, options);
}