I have a large jagged list, that is each sub-list has a different length. I would like to
Flatten this list for
Histogram purposes, but it seems to be taking an inordinate amount of time and memory
Just to illustrate, length of each of elements of the main list
Full Flatten takes a long time, my real data is several times larger, it gets painfully slow
I noticed flattening non-jagged sub-lists is not a problem
Memory usage is huge on the final result of the full list, even though number of elements is the same:
Would super appreciate any tips on what I can change to make this faster / more memory compact !