Comment

Comment by maciej

What about performance? One of the reasons to use namedtuple is performance, esp. memory-wise (afaiu nametuple stores field names in class definition, which can save a lot of space compared to lists of dicts). I would expect recordtype to be better than dict but not as good as namedtuple. It would be nice if author posted some benchmarks…
parent maciej 15 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton