59
"Clean" Code, Horrible Performance in Rust
(chrs.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
For what its worth , the cache locality of Vec<Box> is terrible in general, i feel like if youre iterating over a large array of things and applying a polymorphic function you're making a mistake.
Cache locality isnt a problem when youre only accessing something once though.
So imo polymorphism has its place for non iterative-compute type work, ie web server handler functions and event driven systems.