alice-i-cecile / ReinforcedSprings.jl

Point mass and spring physics engine and designer, in the spirit of Soda Constructor. Eventually, powered by reinforcement learning.
MIT License
0 stars 1 forks source link

Test performance of StaticArray features #14

Closed alice-i-cecile closed 5 years ago

alice-i-cecile commented 5 years ago

Swapping to an MVector (fixed size, mutable) may be very useful for physics updates of Contraptions.

alice-i-cecile commented 5 years ago

"Note that in the current implementation, working with large StaticArrays puts a lot of stress on the compiler, and becomes slower than Base.Array as the size increases. A very rough rule of thumb is that you should consider using a normal Array for arrays larger than 100 elements. For example, the performance crossover point for a matrix multiply microbenchmark seems to be about 11x11 in julia 0.5 with default optimizations."

Likely incorrect for use case as performance only limiting for large N.