donnerpeter commented on pull request #2320: URL: https://github.com/apache/lucene-solr/pull/2320#issuecomment-775707413
AFAIK JIT compiler should inline `length()` unconditionally, extract it here to a local variable, and thus there'd be just 2 comparisons instead of 1. I haven't checked the assembly though. Anyway, done. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
