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
% time make
g++ -g example.cpp -I/home/public/spdlog/include -L/home/public/spdlog/lib64 -lspdlog -DSPDLOG_COMPILED_LIB -I/home/public/spdlog/include -lpthread -o logger
make 3.43s user 0.26s system 97% cpu 3.782 total
I used the external latest fmt library. but I didn't find any improvement.
the first line in example.cpp:
#define SPDLOG_FMT_EXTERNAL
I commented out the user_defined_example() which leads to the compilation error.
Then I recompile the example.
g++ -g example.cpp -I/home/public/fmt/include -L/home/public/fmt/lib64 -lfmt -I/home/public/spdlog/include -L/home/public/spdlog/lib64 -lspdlog -DSPDLOG_COMPILED_LIB -I/home/public/spdlog/include -lpthread -o logger
make 3.16s user 0.18s system 97% cpu 3.451 total
% time make g++ -g example.cpp -I/home/public/spdlog/include -L/home/public/spdlog/lib64 -lspdlog -DSPDLOG_COMPILED_LIB -I/home/public/spdlog/include -lpthread -o logger make 3.43s user 0.26s system 97% cpu 3.782 total
the example.cpp is the built-in example.
I precompile the spdlog intot the shared lib.
Here is the profile.
The text was updated successfully, but these errors were encountered: