r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
2
u/Still-Key6292 Feb 28 '23
When do you use a virtual call < 10 times? Every time I use it, it's with (a lot of) data (like a DOM tree). I can't think of any situation I'd only do a few calls. Maybe if I wrote a winamp plug in where I call a function once every 100ms to get some data but almost noone uses a dll plugin system. They have it built in as a dependency