Hi Michael.
@You : "..re: script API docs I think everything current..."
Thank you very much!
@You : "...sorry now I'm really confused, how are you running that script currently when the surface area method hasn't been added yet?.."
I apologize if I didn't make that clear.
I was referring to the "hypothetical" script that doesn't exist yet :)
Something that I was trying to extract from the CVolume script made by max, before you wrote me that this is not feasible at the moment.
Anyway, let's get rid for the moment of the area calculation and let's say that I simply want to filter a set of curves based by length (in range).
I mean, doing this is in a javascript loop, and let's say that the script must process 2000 curves (or edges).
@You : "...How long is it taking?
Again, please post the script with the performance issues so I can take a look at what's going on and see if I can give some advice..."
Ok. Now I put together a bunch of lines of javascript code to test the speed of filtering a given amount of curves by lenght inside a loop.
And I will do that in two ways :
1) using a "proxy" (a javascript array). I will fill this array the very first time I enter the loop and then I will use that array instead of
repeatedly querying Moi's data with the method getLength()
2) using the standard way, that is, calling getLength() continuously within the loop.
I will post to you the final results (the timing of first and second method).
Thanks for the willingness!
|