doom369 opened a new pull request, #14920:
URL: https://github.com/apache/lucene/pull/14920

   `IndexFileNames.parseGeneration` allocates multiple unnecessary strings (3-6 
strings per call) + string[] objects:
   
   ![image 
(17)](https://github.com/user-attachments/assets/2d70c174-7f82-4b4f-ae50-268553ab4c91)
   
   With often reindexing this allocations become notable during profiling. 
These allocations could be easily eliminated with a manual underscore search. 
After the fix only 1 string will be allocated in the worst case.


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to