Fastest way to populate a DataTree from arrays. I have the following arrays (
Point3d[n] ), three dimensional that is. Each sub-array may have different length, and the third dimension arrays (darkest) should be merged into one single (long) Branch in the Datatree (0…4 --> one long array):
I create my raw data using arrays to avoid data races with Parallel.For, but adding the array content to the Datatree takes 6 times longer than creating the data in the arrays… I couldn’t find any Datatree.Capacity property to speed things up.