Time to do trying to write my own graph algorithms in #rust and just use a library instead. I would like to get results!
Oh Heaptrack is a nice programme to measure & analyze heap memory access of a programme. Works nicely & easily with #Rust code.
I'm finding it quite easily to reduce memory allocations in my code.
"I know I'll just write a quick #Rust programme to proxy my http connections and add the header that I want".
Oh cripes, I forgot hyper's now gone weird with Futures and the like.
"Elegant Library APIs in #Rust"
Now this is an interesting guide!
(I learned about the `impl Into<Option<T>>` which looks very useful!)
Ung. I love #Rust in many ways, but the String/&str thing often wrecks my head. Why is there &str *and* &String? Making functions they can take either type is annoying. (currently trying to wrap my head around Borrow vs AsRef).
OMG, I just discovered if you put this in your Cargo.toml (in a #Rust proj) then dev mode will run as fast a release mode!
opt-level = 3
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!