Commit 441b1c6
authored
Saving buildGitInfo lambda into a member variable (#10615)
* Saving buildGitInfo lambda into a member variable
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
* spotless1 parent ba40c0e commit 441b1c6
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
0 commit comments