News for hackers. Stuff that matters.
Re:Redesigning Python's named tuples by zodiac on Friday September 01, 2017 @01:14AM (#15146279)
> 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 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.

There are no comments on this comment yet.