mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-14 08:55:01 +01:00
Compare commits
2 commits
e29cf0880a
...
b7ba7d9ec4
| Author | SHA1 | Date | |
|---|---|---|---|
| b7ba7d9ec4 | |||
| d2379848ac |
3 changed files with 14174 additions and 4 deletions
File diff suppressed because it is too large
Load diff
BIN
slides/2025-10-10-how-rust-compiles/cargo-timings-debug-ra.png
Normal file
BIN
slides/2025-10-10-how-rust-compiles/cargo-timings-debug-ra.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
|
|
@ -61,8 +61,8 @@
|
|||
<textarea data-template>
|
||||
# speed 🚀
|
||||
|
||||
- compile times
|
||||
- runtime performance
|
||||
- compile times
|
||||
</textarea>
|
||||
</section>
|
||||
<section>
|
||||
|
|
@ -130,7 +130,12 @@
|
|||
<textarea data-template>
|
||||
## it's often LLVMs fault
|
||||
|
||||
- but like not really
|
||||
- but like not really
|
||||
|
||||
<br>
|
||||
<img alt="output of cargo build --timings, showing blocks of blue and purple bars of roughly equal size" src="cargo-timings-debug-ra.png">
|
||||
|
||||
`cargo build --timings`
|
||||
</textarea>
|
||||
</section>
|
||||
<section>
|
||||
|
|
@ -396,8 +401,8 @@ fn main() { math::add() }
|
|||
|
||||
- spend N times optimizing the function
|
||||
- and there's duplicate instances!
|
||||
- `cargo-llvm-lines`
|
||||
- share-generics helps for non-release builds
|
||||
- `cargo-llvm-lines`
|
||||
</textarea>
|
||||
</section>
|
||||
<section data-markdown>
|
||||
|
|
@ -551,7 +556,6 @@ fn main() { math::add() }
|
|||
|
||||
- optimizes everything in your program together at the end
|
||||
- breaks crate boundaries
|
||||
- is awesome
|
||||
- is slow
|
||||
- comes in many forms
|
||||
</textarea>
|
||||
|
|
@ -687,6 +691,8 @@ fn main() { math::add() }
|
|||
## and both? 🥺👉👈
|
||||
|
||||
- no
|
||||
- at least not at once
|
||||
- debug/release
|
||||
</textarea>
|
||||
</section>
|
||||
<section data-markdown>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue