Content
@
0 reply
0 recast
0 reaction
Sam Ragsdale
@samrags
Looking for the best resources on understanding the costs of dynamic dispatch in Rust. We’re refactoring some things in Lasso to support Jolt — anecdotally the cost seems tiny, but hoping to understand long term implications
4 replies
3 recasts
7 reactions
franco
@francos.eth
you won't notice any performance difference unless the call is in some very hot path called many millions of times
0 reply
0 recast
1 reaction
Varun Srinivasan
@v
Assuming you need dyns, the best way to estimate app impact is prototyping. I would guess its small, but i also don't know how perf sensitive your codepaths are.
0 reply
0 recast
1 reaction
clabby
@vex
This is a great resource on the topic I watched a while back: https://youtu.be/xcygqF5LVmM
0 reply
0 recast
6 reactions
Sagar Dhawan
@sagar
From a code structure/maintainability pov, what's the biggest win you'll get from refactoring to dynamic dispatch? Perf cost is small (but non zero) and improves compiled binary size.
0 reply
0 recast
1 reaction