Commit 2365c12
Cache Tracer Host Entry to reduce allocation in RemoteHostnameAdder (#10968)
Caching host entry to reduce allocation
spotless
Merge branch 'master' into dougqh/cache-tracer-host
Merge branch 'master' into dougqh/cache-tracer-host
Flipped equals order
hostname is type String while cachedHostEntry.objectValue() returns Object
By calling equals on hostname, the equals call can be statically devirtualized
Previously, the call would have used type profile based devirtualization, but that incurs an extra type check that isn't really needed
Admittedly, there will still be a type check in string equals
Merge branch 'master' into dougqh/cache-tracer-host
Merge branch 'master' into dougqh/cache-tracer-host
Merge branch 'master' into dougqh/cache-tracer-host
Merge branch 'master' into dougqh/cache-tracer-host
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent 9fd98dd commit 2365c12
File tree
1 file changed
+19
-2
lines changed- dd-trace-core/src/main/java/datadog/trace/core/tagprocessor
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
22 | 39 | | |
23 | 40 | | |
0 commit comments