You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when we do things like tables.individuals.add_row we're running the following code:
@propertydefindividuals(self) ->IndividualTable:
""" The :ref:`sec_individual_table_definition` in this collection. """returnIndividualTable(ll_table=self._ll_tables.individuals)
I think this was done originally to avoid some circular references, but it's totally unnecessary and actually a massive bottleneck. This is because every time we do a tables.individuals (e.g.) reference, we're actually parsing the metadata schema as well because we're creating a new table instance each time.
This is a good motivation for making sure that we do actually just create a single reference to the high-level table object at initialisation time, and to cache this as a private property (like we do in the Tree class for the quintuply linked arrays).
Activity