Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv4 in IPv6 cleanup #292

Merged
merged 1 commit into from
Apr 14, 2017
Merged

IPv4 in IPv6 cleanup #292

merged 1 commit into from
Apr 14, 2017

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Apr 12, 2017

Changes:

  1. Moves ipv4Piece verification step right after the ipv4Piece calculation. Because if the "ipv4Piece > 255" verification returns failure, then no need to increase pointer.

  2. Moves the last (8.) step to the outside of 6.5.5 loop. This lets drop c is the EOF check in this moved step, because loop stops on EOF. This obviously gives a better performance.

These changes are based on nodejs/node#12315 (comment) and nodejs/node#12315 (comment)


Preview | Diff

@annevk annevk requested a review from domenic April 12, 2017 18:07
@annevk
Copy link
Member

annevk commented Apr 12, 2017

I'll let @domenic verify this in whatwg-url and then land it as an editorial change. LGTM otherwise though. Thanks!

@watilde
Copy link

watilde commented Apr 12, 2017

Thanks for putting the discussion into here! +1

watilde added a commit to watilde/whatwg-url-1 that referenced this pull request Apr 12, 2017
watilde added a commit to watilde/whatwg-url-1 that referenced this pull request Apr 12, 2017
domenic pushed a commit to watilde/whatwg-url-1 that referenced this pull request Apr 13, 2017
This does not change behavior but keeps us up to date with the spec. Follows whatwg/url#292.
@annevk annevk merged commit 488c459 into whatwg:master Apr 14, 2017
@rmisev rmisev deleted the ipv4-in-ipv6-cleanup branch April 14, 2017 05:45
domenic pushed a commit to jsdom/whatwg-url that referenced this pull request Apr 14, 2017
This does not change behavior but keeps us up to date with the spec. Follows whatwg/url#292.
rmisev added a commit to upa-url/upa that referenced this pull request May 24, 2020
Follows whatwg/url#292
Makes (1.) change; the (2.) optimization was done earlier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants