2 ms·
> What would be the startup performance of parsing the above 5 line class compared to a namedtuple? I think https://news.ycombinator.com/item?id=15135147 https
by zodiac 9y ago
> What would be the startup performance of parsing the above 5 line class compared to a namedtuple?
I think https://news.ycombinator.com/item?id=15135147 https://news.ycombinator.com/item?id=15135147 explains why you can't optimize namedtuple like that, since dynamic dispatch makes calls to them not "the exact equivalent" of that code. The proposal to move them to a top level data structure could solve this problem though, I think.