3 ms·
I'd be happy to see it optimized - namedtuple looks like a convenient way to quick-and-dirtily define a data structure, but several times I've ended up changing
by tveita 9y ago
I'd be happy to see it optimized - namedtuple looks like a convenient way to quick-and-dirtily define a data structure, but several times I've ended up changing back to plain tuples because using namedtuple was much slower, especially when pickling.
Maybe they could add a variant that isn't a tuple as well.