A bunch of our classes are just records/structs for passing a bundle of data around together, where the collection of fields is fixed, and where it doesn't make sense to mutate the values they comprise. These classes should be switched over to namedtuples. Using namedtuples helps ensure we don't accidentally mutate things, and greatly reduces the overhead of constructing the objects themselves.
Comment 1 by wrengr@chromium.org
, Nov 2 2016