Saving buildGitInfo lambda into a member variable by dougqh · Pull Request #10615 · DataDog/dd-trace-java

@dougqh

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

daniel-mohedano

@dougqh

@dougqh dougqh deleted the dougqh/optiimize-gitiinfo branch

February 18, 2026 15:02