stefanvodita commented on issue #16672: URL: https://github.com/apache/lucene/issues/16672#issuecomment-5703056610
I'm not sure to what extent the advantage is inlining strings in stack space. There's also a consideration of fitting the string on two registers. The first register would hold the length of the string and its prefix, for fast comparison, and the second register would be a pointer to the string or the rest of the string if it's short enough. Then there's the benefit of having a fixed stride in a list of strings, being able to iterate through them and jump to a string by index without dereferencing pointers. I think these benefits hold in Java too. -- 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]
