Files
ladybird/Libraries/LibJS/Runtime/PrimitiveString.cpp
Andreas Kling ce8f92cf6a LibJS: Reuse cached ASCII strings for substrings
Teach the PrimitiveString substring creation path to return the
VM's preallocated single-character ASCII strings instead of always
allocating a deferred Substring.

This keeps one-code-unit ASCII substrings on the same fast path as
direct string creation, including callers like charAt and indexed
string property access.
2026-04-12 19:15:50 +02:00

16 KiB