3 ms·
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: http
by hbrn 4y ago
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 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.
- blackoil 4y agoAOT would require recompilation and deployment. JIT can do it for the same code with final params. When the log level is not final, branch prediction Will ensure JIT code is faster.