3 ms·
> If you can add new methods or change their implementation at runtime, performance optimizations get a lot trickier This particular example is a non-issue tho
by chrisseaton 4y ago
> If you can add new methods or change their implementation at runtime, performance optimizations get a lot trickier
This particular example is a non-issue though - it's completely solved through dynamic deoptimisation (as in the machine code with and without method redefinition is exactly the same.)