You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0cbb4a1
Browse filesBrowse the repository at this point in the historyBrowse files
* URLParser: scan runs of ordinary characters instead of dispatching per code point
Adds table-driven run scanners for the scheme, authority, path, query,
fragment and opaque-path states plus a straight-line pass over the common
special-scheme://host/path?query#fragment shape that hands off to the
state machine at the first character needing more than a copy. Host
parsing only attempts IPv4 / ends-in-a-number when the last label could
be a number, the parser writes into the caller's URL and borrows const
input strings, and URL::invalidate is inline.
* URLParser: rewrite IPv4/IPv6 host parsing over character pointers, avoid UTF-8 round trip for IDN hosts, cheaper isTabOrNewline
* URLParser: SIMD scans for path, query, fragment and opaque path runs
* URLParser: percent-encoded host path cleanups
* URLParser: pointer scans for authority '@' search, non-special hosts, userinfo runs and ports
* URLParser: branch-free upper-case detection in host validation
* URLParser: narrow UTF-16 to bytes for SIMD classification and appends
* URLParser: SIMD skip of plain host characters, fused percent-encoded host path, cheaper short UTF-16 appends
* URLParser: header for parseIPv6Host signature
* hasUnpairedSurrogate: use simdutf UTF-16 validation instead of iterating code points
This is what every USVString conversion goes through; for 16-bit strings it
was ~40% of URL.canParse.
* URLParser: cheap early-out before the ends-in-a-number label scan
* StringImpl::deref: skip the atomic read-modify-write when uniquely owned
If the reference being dropped is the only one, no other thread can hold a
reference from which to add another, so a relaxed load suffices before
destroying.
* URLParser: dotted-quad fast path, table-driven number-label check, SIMD to end of authority for non-plain hosts, leaner CodePointIterator
* URLParser: inline the syntax-violation check and percentEncodeByte
* URLParser: SIMD authority scan in AuthorityOrHost/Host states
* URLParser: let path runs span '/' unless it may start a dot segment
* URLParser: bulk-copy a 16-bit base URL prefix
* URLParser: remove an incorrect assertion
* URLParser: SIMD host scan in the FileHost state
* URLParser: branch-free hex digit values in IPv6 parsing
* URLParser: reject a host surrogate pair split by a tab like the old parser did; own the input string; one lastLabelMayBeANumber; update URLGLib.cpp
- parseHostAndPort checked for unpaired surrogates after removing tabs and
newlines, so a pair split by one was reunited and accepted. The old parser
iterated code points over the raw host and saw two unpaired surrogates.
Check before stripping. Adds a TestWTF case.
- Replace the borrowed 'const String& m_inputString' + m_ownedInputString pair
with one owned String that is moved into the result; same refcount traffic
on the no-violation path, no self-referential member.
- Hoist the three copies of the ends-in-a-number pre-check into one helper.
- URL(GUri*) still used the removed URLParser(String&&)/result() API.
0 commit comments