Open ZENOTME opened 3 months ago
The default format is more optimized in the format string compilation. In general it doesn't make sense to use redundant specifiers but we could handle them in the same way (note that g
is not equivalent to the default though). A PR would be welcome.
Format Specification can used to constrain the type safety but I find that when format using Format Specification, there is a huge decline in performance. Is there way to avoid this.
test code usin google bench
result
bench_spdlog_compile_format 349 ns 349 ns 1971834 bench_spdlog_constrain_compile_format 2586 ns 2586 ns 270360