Re:Java is very fast, if you don’t create many objects
by hbrn on Monday September 12, 2022 @01:40PM
(#32813926)
Are you sure you're not confusing zero-cost with almost zero-cost? Even zerolog talks about negligible costs after most aggressive optimizations, not zero: https://github.com/obsidiandynamics/zerolog
If you're just using constants in your code to set logging level, AOT compilation can do exactly the same optimizations.
If you're just using constants in your code to set logging level, AOT compilation can do exactly the same optimizations.