The static ThreadHeapSampler::_log_table is initialized on JVM bootstrap to an overhead of ~67k instructions. By utilizing constexpr, we can precalculate the helper table at compile time, which trades a runtime overhead for a small, 8kb, static footprint increase.
-
Claes Redestad
-
Claes Redestad
- Votes:
-
0 Vote for this issue
- Watchers:
-
4 Start watching this issue
- Created:
- Updated:
- Resolved: