VireoSDK icon indicating copy to clipboard operation
VireoSDK copied to clipboard

Consider using fmtlib over printf

Open rajsite opened this issue 2 years ago • 2 comments

Has some nice perf wins and can maybe coalesce the via Print %z specifier into it with the custom types support: https://github.com/fmtlib/fmt

rajsite avatar Jul 06 '23 02:07 rajsite

I agree this is a good one to use. If we upgrade to compilers supporting C++20, this is part of the standard library, and we would not need external dependency.

sanmut avatar Jul 06 '23 13:07 sanmut

Ah cool, didn't know that! Just for my curiosity, here is a SO on some of the libfmt features not in C++ standard library: https://stackoverflow.com/a/63587221/338923

rajsite avatar Jul 06 '23 14:07 rajsite