58
submitted 2 months ago by chrs@programming.dev to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] bonus_crab@lemmy.world 5 points 2 months ago

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.

this post was submitted on 08 Apr 2024
58 points (91.4% liked)

Rust

5361 readers
1 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS