2 ms·
Pedantic, but I assume you're referring to virtual methods? Ad hoc polymorphism (C++ templates) and parametric polymorphism (Rust) can be inlined. Although tho
by armchairhacker 10mo ago
Pedantic, but I assume you're referring to virtual methods?
Ad hoc polymorphism (C++ templates) and parametric polymorphism (Rust) can be inlined. Although those examples are slow to compile, because they must be specialized for each set of generic arguments.
- jeffbee 10mo agoC++ tools can also devirtualize when doing whole-program optimization or tools like BOLT can promote indirect calls generated by any language.