Repository navigation
Conversation
This was referenced Sep 17, 2026
Member
Author
This was referenced Sep 17, 2026
Contributor
Merging this PR will not alter performance
Comparing Footnotes
|
This was referenced Sep 17, 2026
Merged
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 18, 2026 02:20
f606d30 to
cd1c341
Compare
Dunqing
force-pushed
the
jsstr-static-name
branch
2 times, most recently
from
September 18, 2026 15:15
477a2fe to
bc652f1
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 18, 2026 15:15
cd1c341 to
bf8beac
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 21, 2026 01:14
9d96a3d to
d95bac0
Compare
Dunqing
force-pushed
the
jsstr-static-name
branch
from
September 21, 2026 01:14
d34bcd6 to
02ebc77
Compare
Dunqing
force-pushed
the
jsstr-static-name
branch
from
September 21, 2026 01:48
54e32a9 to
b4d6c66
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 21, 2026 01:54
5cfc1f0 to
23971d1
Compare
Dunqing
force-pushed
the
jsstr-static-name
branch
2 times, most recently
from
September 21, 2026 02:54
3a95eb7 to
ba0f5c9
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 21, 2026 02:54
23971d1 to
ba61d2c
Compare
6 of 22 tasks
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 21, 2026 07:04
ba61d2c to
4638a94
Compare
Dunqing
force-pushed
the
jsstr-static-name
branch
2 times, most recently
from
September 21, 2026 07:39
65e88ca to
8ee9397
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 27, 2026 13:45
5c1efa5 to
a27caa4
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
from
September 27, 2026 13:45
e973891 to
3e6b7ee
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 27, 2026 15:46
a27caa4 to
d67fe15
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
2 times, most recently
from
September 27, 2026 23:45
69e87ac to
cabfea2
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 28, 2026 00:21
e53bbd7 to
721aaa4
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
from
September 28, 2026 15:42
37a11a0 to
f2c67b5
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 28, 2026 16:15
62d30a3 to
fc10316
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
2 times, most recently
from
September 28, 2026 17:17
62c95ef to
df58a7e
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 29, 2026 01:38
83f6f48 to
8fd8d8d
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
from
September 29, 2026 01:38
df58a7e to
47c2d85
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 29, 2026 02:18
8fd8d8d to
c9c1205
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
from
September 29, 2026 08:36
2882a14 to
9941de9
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 30, 2026 03:12
402d975 to
0495a9d
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
2 times, most recently
from
September 30, 2026 08:08
9ead552 to
3615e3a
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
2 times, most recently
from
September 30, 2026 09:34
047a94e to
bd05b14
Compare
Dunqing
force-pushed
the
jsstr-constant-value
branch
2 times, most recently
from
September 30, 2026 15:51
c9dfcf5 to
24d442a
Compare
Dunqing
force-pushed
the
jsstr-estree-escape-table
branch
from
September 30, 2026 15:51
bd05b14 to
0385214
Compare
This was referenced Oct 12, 2026
The JSON string serializer kept an `EscapeTable` trait with one implementation after the JSStr migration removed the marker decoder that had justified it. The indirection no longer selects anything. Use the `ESCAPE` lookup table directly, make `get_escapes_mask` a free function with the same algorithm and mask contract, and drop the type parameter from `write_str`. Output is unchanged. Part of #26242. Implemented with AI assistance.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The string serializer kept an
EscapeTabletrait with a singleStandardEscapeTableimplementation, retained during the JSStr migration to keep that diff reviewable. With the migration stack in place the abstraction has no second implementation and no prospect of one, since the JSStr cold path handles the only divergent case.Remove the trait and its implementation, move
get_escapes_maskto a free function with its algorithm and mask contract unchanged, and replace the generic lookups with directESCAPEtable indexing. No output changes; the UTF-8 fast path, the JSStr cold path, and the safety invariants are untouched.Verified with the
oxc_estree,oxc_str, and parser serialization tests; the diff is one file.Part of #26242.
Implemented with AI assistance.