Saving buildGitInfo lambda into a member variable by dougqh · Pull Request #10615 · DataDog/dd-trace-java
Unfortunately, profiles show the lambda from this:::buildGitIInfo being a hot allocation point. That would suggest that escape analysis wasn't able to kick in here. So I introduced a member variable to hold the variable to avoid repeatedly allocating
dougqh
deleted the
dougqh/optiimize-gitiinfo
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters