ni / VireoSDK

Compact runtime for a subset of LabVIEW
Other
49 stars 44 forks source link

Consider using fmtlib over printf #702

Open rajsite opened 1 year ago

rajsite commented 1 year ago

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

sanmut commented 1 year ago

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.

rajsite commented 1 year ago

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