logoalt Hacker News

Scubabear68today at 4:58 PM2 repliesview on HN

A function call is not necessarily an indirection. Basic premise of the blog is wrong on its face.


Replies

hrmtst93837today at 7:06 PM

People new to Rust sometimes assume every abstraction is free but that's just not the case, especially with lifetimes and dynamic dispatch. Even a small function call can hide allocations or vtable lookups that add up quickly if you're not watching closely.

alilleybrinkertoday at 5:09 PM

Did you read the article? The author makes exactly that point.

show 1 reply