2 ms·
> Totally disagree. Hmm, I see.... > Most collections/array I process have trivial number of elements (<100) Ah! ok that explains it. > I would rather use
by srean 9y ago
> Totally disagree.
Hmm, I see....
> Most collections/array I process have trivial number of elements (<100)
Ah! ok that explains it.
> I would rather use functional programming approaches to sort data into shape (think map/filter/reduce). These approaches typically result in passing over the data multiple times, and often performing multiple copies,
That's a good recommendation. If you tend to write in a deforestable style (whether deforested automatically by the compiler or, by you manually) you can mitigate some gratuitous copying and multiple passes.