viswanathk opened a new pull request, #14022: URL: https://github.com/apache/lucene/pull/14022
Part of #14002 Stack depth was growing more than it should causing excessive allocations. This should help reduce them, and may potentially speed up process. Benchmark while indexing 100k docs: ``` cat max_stack_depth_optimized.txt | grep maxStackDepth | sort -t= -k2 -n | tail maxStackDepth=8592 maxStackDepth=8605 maxStackDepth=8666 maxStackDepth=8738 maxStackDepth=8779 maxStackDepth=8825 maxStackDepth=9084 maxStackDepth=39925 maxStackDepth=67764 maxStackDepth=68239 ``` ``` cat max_stack_depth_non_optimized.txt | grep maxStackDepth | sort -t= -k2 -n | tail maxStackDepth=138439 maxStackDepth=139713 maxStackDepth=140014 maxStackDepth=140365 maxStackDepth=140955 maxStackDepth=147255 maxStackDepth=152292 maxStackDepth=618303 maxStackDepth=1128533 maxStackDepth=1505067 ``` cc: @msokolov @vigyasharma -- 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