Re-implement .trials
#418
Labels
Explore
Examine novel functionality/proposed changes etc. Does not necessarily involve coding things.
Performance
Improve the number crunching
Current Situation
The backing
Indexer
class is a sophisitcated, yet quite inefficient iterable, which gets re-computed on every.trials
property access. Meaning that if someone just accesses repeatedlymy_data.trials[1000]
, all preceding 1000 trials get consumed via_get_trial
, exhausting the 'computed' generator, every single time. This is sub-optimal for continuous data, but apparantly really abysmal for discrete data, see also #403Idea
A simple fixed/'pre-computed'
.trials
property subclassed fromlist
which maps item access to_get_trial
should do the trick. Support for slices, arrays etc. can then be added as we have it right now..
The text was updated successfully, but these errors were encountered: