msokolov commented on issue #12071:
URL: https://github.com/apache/lucene/issues/12071#issuecomment-1379144309

   I wonder if we could update `UnicodeUtil` to use `getBytes` internally? It 
could check the size of the byte array, and if it is equal to the length of the 
string, then just return it. Otherwise it could scan the string for the 
replacement char and update it in place before returning, in order to maintain 
backward compatibility. Not sure if it would give back the gains in those cases 
though?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to