Fast Virtual Functions: Hacking the VTable for Fun and Profit
Virtual functions have clear intrinsic value; using them can make architectures significantly more flexible and solve a plethora of design problems.When it comes to virtual functions (or methods, the terminology distinction isn’t fruitful in this context) there are two main schools of thought for performance. The first is that they’re slow, always have been, and always will be. Folks of this school will tell you that they’re too slow to use in games. The second is that they were once slow, but m...
Read more at medium.com