Re:The Performance Impact of C++'s `final` Keyword
by neonsunset on Tuesday April 23, 2024 @03:52AM
(#40129585)
Interesting! (I was way off the mark, not reading carefully, ha)
Is it a public project?
Re:The Performance Impact of C++'s `final` Keyword
by ygra on Tuesday April 23, 2024 @06:57AM
(#40130443)
Nope, completely internal and part of how we offer essentially the same product on multiple platforms with minimal integration work. And existing C# → anything compilers are typically too focused on compiling a whole application instead of offering a library with a stable and usable API on the other end, so we had to roll our own.
And indeed, on the C# -> IL side there's little that's being actually optimized. Besides collection literals there's also switch statements/expressions over strings, along with certain pattern matching constructs that get improved on that side.