cargo-show-asm
cargo-asm
cargo-show-asm | cargo-asm | |
---|---|---|
15 | 13 | |
593 | 1,131 | |
- | - | |
9.1 | 0.0 | |
5 days ago | 2 months ago | |
Rust | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cargo-show-asm
- Performance difference between obj.function(...) and function(obj, ...) ?
- Cargo command to analyze the code
- The Icculus Microgrant is giving out 250 dollar grants to open source projects, please brag about your project(s) in this thread so I can see them!
-
Announcing clap-markdown — automatically generate Markdown docs for clap command-line tools
https://github.com/pacak/cargo-show-asm/tree/semantic - how all of this is used
- cargo-show-asm 0.2.14 - new and improved all over the place :)
-
cargo-show-asm 0.2.10 - new and improved all over the place :)
Go to https://github.com/pacak/cargo-show-asm/issues/new
-
cargo-show-asm 0.2.4 - new and improved all over the place :)
https://github.com/pacak/cargo-show-asm/pull/88 - will release in a day or two unless there's some more urgent fixes.
-
Compiling Brainfuck code - Part 2: A Singlepass JIT Compiler
In this case, I used cargo-show-wasm
-
Why would introducing a panic cause a 20% performance increase
Executing cargo-show-asm on the before and after doesn't show large difference in total lines emitted (1061 vs 1102):
-
Design comparison of clap and bpaf (arg parsers)
If you are using bpaf in a situation where you don't really care about the compilation time (or you do but already have proc macros) you just put the main options struct on top and describe the rest in any style: https://github.com/pacak/cargo-show-asm/blob/master/src/opts.rs
cargo-asm
-
Performance difference between obj.function(...) and function(obj, ...) ?
cargo asm might be useful here (if you can't use godbolt).
-
Is there a simple way to borrow the value of an Option without using a match statement?
They should be inlined in release mode. You'd have to verify by checking the assembly, though, which could be done directly in the Rust playground or with a tool like cargo-asm.
-
Hey Rustaceans! Got a question? Ask here (4/2023)!
You can use cargo asm - not sure if you can integrate it with VSCode, but even from a terminal it's a pretty convenient tool.
-
How does rust optimize this code to increase the performance so drastically?
There's probably a built-in one somewhere, but I suspect it'd be easier just to install https://github.com/gnzlbg/cargo-asm
-
Is there a library to display source with annotations?
I don't know if there's a way to do a side by side comparison but cargo-asm uses the source mapping information from rustc to annotate chunks of assembly with it's respective rust code, though it's an imperfect process.
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
After that you would need some tools to help figure out how to achieve improvements. That will depend on your system and personal preferences. As the other commenter suggested, perf is a good choice on linux. I personally like to look at the generated assembly, using either cargo asm, godbolt, or just rust playground.
-
New crate announcement cargo-show-asm
Doesn't this already exist? https://github.com/gnzlbg/cargo-asm
- on the fly disassembler for Rust symbols
-
Writing the fastest GBDT libary in Rust
From the flamegraph, we knew which function was taking the majority of the time, which we briefly described above. We started by looking at the assembly code it generated to see if there were any opportunities to make it faster. We did this with cargo-asm.
-
How can I profile this type of slowdown?
You're best bet at the moment is probably using cargo-asm to inspect the function assembly to see when it is performing the correct TCO.
What are some alternatives?
wp-plugin-leaflet-map - Add leaflet maps to Wordpress with shortcodes
rust - Empowering everyone to build reliable and efficient software.
compiler-team - A home for compiler team planning documents, meeting minutes, and other such things.
multitarget-issue
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
safe_arch - Exposes arch-specific intrinsics as safe function (via cfg).
cargo-aur - Prepare Rust projects to be released on the Arch Linux User Repository
wide - A crate to help you go wide. By which I mean use SIMD stuff.
wagic - Wagic the Homebrew
stateright - A model checker for implementing distributed systems.
scummvm - ScummVM main repository
tracing - Application level tracing for Rust.