quilkin icon indicating copy to clipboard operation
quilkin copied to clipboard

Idea: Optimising compile-time filter chains

Open XAMPPRocky opened this issue 3 years ago • 0 comments

Someone recently wrote this crate (zero_v) as a prototype of an approach to optimise out vtables when you know the collection of dynamic objects that you’re going to be running. They have a benchmark you can run and the gains are pretty substantial from what I can see (~100ns to ~20-30ns).

I asked about making this runtime-friendly so that you could still have this when you update at runtime (such as what we do), and it seems relatively straightforward, as we’re already doing the enum approach for configuration.

XAMPPRocky avatar May 21 '21 13:05 XAMPPRocky