News for hackers. Stuff that matters.
Re:Allocgate: Restructuring how allocators work in Zig by jasonhansel on Wednesday December 15, 2021 @06:48PM (#29573049)
I believe that "devirtualization"--the optimization mentioned in the OP--will do exactly what you're describing, by rewriting the virtual function call as a static call to the allocator when the vtable can be determined from the callsite at compile-time.

There are no comments on this comment yet.