boostorg / stacktrace

C++ library for storing and printing backtraces.
https://boost.org/libs/stacktrace
434 stars 75 forks source link

Slow `frame` functions #193

Open HazyMrf opened 2 weeks ago

HazyMrf commented 2 weeks ago

Hello! I use boost stacktrace library and frame functions like name() are taking too much time (like +-10seconds) probably because of the large binary (about 35MB). Is there any way I can speed up these functions?

SetUp Compiler: clang-18 Flags: -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_STACKTRACE_LINK

apolukhin commented 2 weeks ago

What flag do you use for compiling your application? Are you using SSD? What operating system do you use?

HazyMrf commented 1 week ago

Thank you @apolukhin for such a quick response! Flags: -fno-pie -fvisibility-inlines-hidden -O3 -funroll-loops -fno-omit-frame-pointer -flto=thin -DNDEBUG -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_STACKTRACE_LINK SSD is not used OS is Ubuntu20