I was quite surprised by how different the runtime is to transpose a list of lists
Guess I am starting to understand why you folks discuss and compare methods so much.
Results:
: (load "transpose_with_func")
C:DOIT
: doit
==============================================================
Testing transpose with vlax-variant-value: many cols few rows
Elapsed milliseconds / relative speed for 1024 iteration(s):
(TRANS3 DATA)......1124 / 18.1 <fastest>
(TRANS1 DATA).....17593 / 1.16
(TRANS2 DATA).....20342 / 1 <slowest>
==============================================================
Testing transpose with vlax-variant-value: many rows few cols
Elapsed milliseconds / relative speed for 1024 iteration(s):
(TRANS3 DATA).....1312 / 1.37 <fastest>
(TRANS2 DATA).....1750 / 1.03
(TRANS1 DATA).....1796 / 1 <slowest>
Using code in the attached file.
PS: This came about because I got a friend to test a routine on Autocad and it did not perform very well. I've since noticed this test runs almost an order of magnitude slower on Autocad on a similar (but not identical) machine. Is there something I've done Autocad does not like or is there a more intelligent way to transform these variants to values?
Greg