mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-14 17:05:02 +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>
|
<textarea data-template>
|
||||||
# speed 🚀
|
# speed 🚀
|
||||||
|
|
||||||
- compile times
|
|
||||||
- runtime performance
|
- runtime performance
|
||||||
|
- compile times
|
||||||
</textarea>
|
</textarea>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -130,7 +130,12 @@
|
||||||
<textarea data-template>
|
<textarea data-template>
|
||||||
## it's often LLVMs fault
|
## 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>
|
</textarea>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -396,8 +401,8 @@ fn main() { math::add() }
|
||||||
|
|
||||||
- spend N times optimizing the function
|
- spend N times optimizing the function
|
||||||
- and there's duplicate instances!
|
- and there's duplicate instances!
|
||||||
- `cargo-llvm-lines`
|
|
||||||
- share-generics helps for non-release builds
|
- share-generics helps for non-release builds
|
||||||
|
- `cargo-llvm-lines`
|
||||||
</textarea>
|
</textarea>
|
||||||
</section>
|
</section>
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
|
|
@ -551,7 +556,6 @@ fn main() { math::add() }
|
||||||
|
|
||||||
- optimizes everything in your program together at the end
|
- optimizes everything in your program together at the end
|
||||||
- breaks crate boundaries
|
- breaks crate boundaries
|
||||||
- is awesome
|
|
||||||
- is slow
|
- is slow
|
||||||
- comes in many forms
|
- comes in many forms
|
||||||
</textarea>
|
</textarea>
|
||||||
|
|
@ -687,6 +691,8 @@ fn main() { math::add() }
|
||||||
## and both? 🥺👉👈
|
## and both? 🥺👉👈
|
||||||
|
|
||||||
- no
|
- no
|
||||||
|
- at least not at once
|
||||||
|
- debug/release
|
||||||
</textarea>
|
</textarea>
|
||||||
</section>
|
</section>
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue