Commit 88119b9
perf(core): Skip Hint allocation in addBreadcrumb without callback (JAVA-605)
Only allocate a Hint when a beforeBreadcrumb callback is set. addBreadcrumb
previously allocated a Hint (HashMap + ArrayList + lock) on every call even
though the Hint is only ever passed to the callback, wasting allocations on
the common no-callback path.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent aab952b commit 88119b9
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 496 | | |
501 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
| |||
0 commit comments