Uh oh!
There was an error while loading. Please reload this page.
url: improve url module performance - #1650
Conversation
Fishrock123
commented
May 7, 2015
This is still semver-major, correct? |
petkaantonov
commented
May 7, 2015
no there should not be breaking changes |
silverwind
commented
May 7, 2015
Let's CI this, also npm tests should pass. |
Fishrock123
commented
May 7, 2015
Fishrock123
commented
May 7, 2015
|
silverwind
commented
May 7, 2015
I'd be fine landing this in a patch release. @petkaantonov can you outline what's changed from the original implementation? |
petkaantonov
commented
May 8, 2015
The parsing has been rewritten ( Some minor changes in formatting ( Some micro optimization in resolution ( |
silverwind
commented
May 10, 2015
Needs a rebase because of 19ffb5c |
4c976d0 to
dd0053aComparepetkaantonov
commented
May 11, 2015
rebased |
silverwind
commented
May 11, 2015
Thanks, got a few linter errors concerning this rule: http://eslint.org/docs/rules/comma-spacing lib/url.js31:22errorThereshouldbenospacebefore ',' comma-spacing32:22errorThereshouldbenospacebefore ',' comma-spacing33:14errorThereshouldbenospacebefore ',' comma-spacing33:28errorThereshouldbenospacebefore ',' comma-spacing228:48errorThereshouldbenospacebefore ',' comma-spacing636:40errorThereshouldbenospacebefore ',' comma-spacing941:48errorThereshouldbenospacebefore ',' comma-spacing950:46errorThereshouldbenospacebefore ',' comma-spacing |
petkaantonov
commented
May 11, 2015
Those are not spaces but comments like |
silverwind
commented
May 11, 2015
Yeah, it's kind of bullshit that this gets interpreted as a space. |
petkaantonov
commented
May 11, 2015
should we open issue in eslint? |
silverwind
commented
May 11, 2015
Already been done: eslint/eslint#2408 |
silverwind
commented
May 11, 2015
Probably best to disable the |
yosuke-furukawa
commented
May 11, 2015
How about this ?? const_protocolCharacters=makeAsciiTable([[0x61,0x7A],/*a-z*/[0x41,0x5A],/*A-Z*/0x2E,/*'.'*/0x2B,/*'+'*/0x2D/*'-'*/]); |
silverwind
commented
May 11, 2015
@yosuke-furukawa that's just confusing. also doesn't work in cases like if(!containsCharacter2(search,0x23/*'#'*/,-1)) |
yosuke-furukawa
commented
May 11, 2015
Hm... I think this is not so weird. if(!containsCharacter2(search,0x23,/*'#'*/-1))But +1 for suppress the warnings if you want. |
silverwind
commented
May 11, 2015
@yosuke-furukawa would you suggest setting the setting to |
yosuke-furukawa
commented
May 11, 2015
1 is warn, 0 is silence. 1 is better. When we will re-consider the eslint rules, we can detect the rule violation easily. |
silverwind
commented
May 11, 2015
@petkaantonov the PR should pass eslint now. I'd advice changing lines like 0x2E/*'.'*/,0x2B/*'+'*/,0x2D/*'-'*/to 0x2E/*'.'*/,0x2B/*'+'*/,0x2D/*'-'*/because I assume eslint will still warn on these after the fix. |
petkaantonov
commented
May 11, 2015
done |
silverwind
commented
May 11, 2015
@petkaantonov thanks. May I ask to add a small test for the |
jasnell
commented
May 14, 2015
One additional bit to note, the IANA registry for URI schemes lists a few more permanent schemes that require the slash (coap, for instance, http://tools.ietf.org/html/rfc7252) that are currently not listed in the |
jasnell
commented
May 14, 2015
@petkaantonov thank you for persisting with this btw. The improvements look very good on an initial review |
tyscorp
commented
May 14, 2015
It'll be great to see this finally land. Great work @petkaantonov |
alubbe
commented
Jun 3, 2015
Hey everybody - what's the status, what's keeping us from merging this? :) |
domenic
commented
Jun 3, 2015
There are still a few outstanding comments, including the request to port the tests from the previous PR. Plus, it needs to be rebased, since it no longer merges cleanly. |
petkaantonov
commented
Jun 3, 2015
I am really lacking the time at the moment |
Fishrock123
commented
Jun 10, 2015
reference to original: #1561 |
alubbe
commented
Jun 10, 2015
No worries @petkaantonov |
ronkorving
commented
Oct 29, 2015
Out of interest, is this still going places? |
jbergstroem
commented
Oct 29, 2015
@ronkorving it nowadays live in #2303. |
ronkorving
commented
Oct 29, 2015
Ah thanks, better close this one then I guess? |
jbergstroem
commented
Oct 29, 2015
I think its left open in case petka has time to resume. |
7da4fd4 to
c7066fbComparebenjamingr
commented
Apr 30, 2016
Going to cloes this, Petka said he's likely not going to resume, the changes live in another PR and this can be reopend anyway if anyone disagrees. |
There is no compatibility breakage and using eager
.hrefis only 33% slower in url parse benchmark, and it could be made lazy again since nobody deletes.hrefanyway.