Home
Feedback Tracker
Search
Configure Global Search
Log In
Transactions
T153111
Change Details
Change Details
Old
New
Diff
Run this is the debug console. ``` _a=[]; for "_i" from 0 to 1000 do { _a pushBack _i }; [diag_codePerformance [{_this+[]},_a] select 0, diag_codePerformance [{+_this},_a] select 0] ``` The suggested method is over **30% faster** for an array with 1000 elements. For an array with 10000 elements, it's **400% faster**!
Run this is the debug console. ``` _a=[]; for "_i" from 0 to 1000 do { _a pushBack _i }; [diag_codePerformance [{_this+[]},_a] select 0, diag_codePerformance [{+_this},_a] select 0] ``` The suggested method is over **150% faster** for an array with 1000 elements. For an array with 10000 elements, it's **400% faster**!
Run this is the debug console. ``` _a=[]; for "_i" from 0 to 1000 do { _a pushBack _i }; [diag_codePerformance [{_this+[]},_a] select 0, diag_codePerformance [{+_this},_a] select 0] ``` The suggested method is over
**30%
**150%
faster** for an array with 1000 elements. For an array with 10000 elements, it's **400% faster**!
Continue