You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
vitaut
changed the title
Format Specification has a huge decline in performance
Difference in performance between the default and explicit presentation specifiers in format string compilation
Aug 5, 2024
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
The text was updated successfully, but these errors were encountered: