static dispatch

A collection of 1 post

Apr 3, 2018

When does dynamic vs. static dispatch matter?

When does dynamic vs. static dispatch matter?

Rust allows the programmer to choose between static and dynamic dispatch pretty much on a case by case basis. In real world terms, the performance difference between the two is practically invisible; a branch is a branch is a branch. When should we choose one over the other and why?