4 ms·
While using a metaclass is indeed cleaner, it's slower than generating code on the fly and exec-ing it. This video talks about it: https://youtu.be/sPiWg5jSoZI
by rajathagasthya 9y ago
While using a metaclass is indeed cleaner, it's slower than generating code on the fly and exec-ing it.
This video talks about it: https://youtu.be/sPiWg5jSoZI?t=1h37m18s https://youtu.be/sPiWg5jSoZI?t=1h37m18s