.@wycats says the surprising performance wins are because avoiding allocations, static dispatch and inlining add up more than we think.
-
-
Replying to @tomdale
E.g. closures are invoked statically and inlineable, iterators allow you to avoid guards in loops.
1 reply 1 retweet 5 likes -
Replying to @tomdale
"In Ruby, your intuition is that things have an allocation cost. In Rust, your intuition should be that things don't have allocation cost."
2 replies 5 retweets 5 likes
-
-
Replying to @slightlylate
@slightlylate@tolmasky@tomdale rust uses jemalloc now, which is pretty useful for Rust's allocation patterns.1 reply 0 retweets 0 likes -
Replying to @wycats
@slightlylate@tolmasky@tomdale perhaps more surprisingly, stack allocation is the 90%+ case and is the best you can do.0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.