Re:Fast Virtual Functions: Hacking the VTable for Fun and Pr...
by cleak on Friday March 22, 2024 @06:12PM
(#39795408)
I've actually shifted most of my personal dev to Rust now, and so this vtable hack has become less relevant. Rust makes it very easy to avoid virtual functions. If I had to redo this bit of code in Rust, a trait would boil any sort of update function down to its concrete type and give (I'd expect) great performance with all the convenience of virtual functions.
[ Parent
| on HN ]
There are no comments on this comment yet.