I'm thinking about creating time series (with limited history) specific data structure implementing moving window for each row.
The DMatrix1Row looks like good candidate for such impl, but index retrieval is inlined (duplicate) in multiple places.
Is there good reason (not sure if it helps JIT) to inline and duplicate code?
I'm thinking about packing multiple such structures to single double array. i.e. adding offset for each of the new shell matrix objects.
Motyvation: It would minimise need for GC to deal with large number of objects.
Do you have some advices (based on previous experience) for such impl? Would you consider back contributions?