Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbacktrace allocation is sometimes very slow #5

Closed
ghost opened this issue Jul 24, 2017 · 0 comments
Closed

libbacktrace allocation is sometimes very slow #5

ghost opened this issue Jul 24, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2017

originally here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68239

affects rustc as mentioned here: rust-lang/rust#38984

Basically, if you have Rust via rustup, you can test like this(assuming shell is bash):

$ time RUST_BACKTRACE=1 rustc -vv
error: Option 'verbose' given more than once.


real	0m0.929s
user	0m0.888s
sys	0m0.037s

$ time RUST_BACKTRACE=0 rustc -vv
error: Option 'verbose' given more than once.


real	0m0.161s
user	0m0.139s
sys	0m0.023s

There's a time difference of almost 0.8s, which isn't much, but will be very noticeable(goes up to like 40 seconds?) if rust is compiled with debug-info.

I'm not sure what could be done, but there's a somewhat in-depth explanation here rust-lang/rust#37477 (comment)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants