Dynamo gives up bounding box contains checking

Hi!

I want to use the “classic” spline renumber but in a massive scale. The BoundingBox.Contains node just gives up the checking around 800000-850000 crossproduct checking. It is not too efficient. I have around 2000 points along the spline and around 350-400 elements to renumber in one go (However I could go to 2000 element in one go but my RAM is not enough). I can’t really reduce the number of points, I already have ~1.5ish point on each family member on the straight runs.

What is a better way to check if a point is in a bounding box? This all point with all bounding box situation is not really working as it reaches some limit that is given by or my machine or by Dynamo itself (I take care to have free RAM and free space)