Skip to content

Commit 351c14d

Browse files
cursoragentanonrig
andcommitted
url: speed up URLPattern
Avoid extra UTF-8 copies on constructor, test, and exec; construct ASCII V8 strings with NewFromOneByte for regexp matching; and assign URLPatternInit fields by interned key instead of string-comparing each component name. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Yagiz Nizipli <anonrig@users.noreply.github.com> Signed-off-by: Cursor Agent <cursoragent@cursor.com>
1 parent f83e7df commit 351c14d

2 files changed

Lines changed: 306 additions & 129 deletions

File tree

0 commit comments

Comments
 (0)