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

Fix dwarfdump stdout handling #282

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Fix dwarfdump stdout handling #282

merged 1 commit into from
Feb 26, 2018

Commits on Feb 26, 2018

  1. Let dwarfdump functions write to an arbitrary Write object, and buffe…

    …r stdout
    
    Before this change, every print(ln) was taking a lock, doing a write syscall,
    and releasing the lock.
    
    Before:
    
    time ( target/release/examples/dwarfdump -i ~/mozilla-central/obj-ff-opt/dist/bin/libxul.so >& /dev/null )
    real	8m25.647s
    user	7m6.523s
    sys	1m18.650s
    
    After:
    
    time ( target/release/examples/dwarfdump -i ~/mozilla-central/obj-ff-opt/dist/bin/libxul.so >& /dev/null )
    real	3m35.072s
    user	3m33.297s
    sys	0m1.556s
    rocallahan committed Feb 26, 2018
    Configuration menu
    Copy the full SHA
    ae191fd View commit details
    Browse the repository at this point in the history