Optimizing Memory and Performance for Immutable Chain Method Classes Handling Large NumPy Arrays
I’m working on a Python project that involves processing large numpy
arrays using a chain of transformations. I’ve implemented two classes: Sample
for individual arrays and SampleCollection
for managing multiple Sample
instances. The classes use immutable chain methods, returning new instances after each transformation.