Cassandra performance in Python: Avoid namedtuple
TLDR: Use dict_factory instead of named_tuple_factory for the python cassandra driver.
Late last year, namedtuple was fingered as a culprit causing slow startup time in larger python applications. After some back and forth (covered by LWN), it appears that some improvements will come in later versions of Python 3, but namedtuple creation remains expensive.
For applications with a fixed number of named tuples, this is a startup penalty but not a drag on operations while running - once the tuples are made, there is no need to remake them.
rhye.org