elasticsearch/libs/x-content
Jordan Powers 96300a9d80
Optimized text for full unicode and some escape sequences (#129169)
Follow-up to #126492 to apply the json parsing optimization to strings
containing unicode characters and some backslash-escaped characters.

Supporting backslash-escaped strings is tricky as it requires modifying the
string. There are two types of modification: some just remove the backslash
(e.g. \", \\), and some replace the whole escape sequence with a new
character (e.g. \n, \r, \u00e5). In this implementation, the optimization
only supports the first case--removing the backslash. This is done by
making a copy of the data, skipping the backslash. It should still be more
optimized than full String decoding, but it won't be as fast as 
non-backslashed strings where we can directly reference the input bytes.

Relates to #129072.
2025-06-12 09:55:07 -07:00
..
impl Optimized text for full unicode and some escape sequences (#129169) 2025-06-12 09:55:07 -07:00
src Update AbstractXContentParser to support parsers that don't provide text characters (#129005) 2025-06-06 09:17:41 -04:00
build.gradle Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00