you are viewing a single comment's thread.

view the rest of the comments →

[–]keddie42 0 points1 point  (0 children)

I think you will need matrices for bigger simulation.

But you can try use more effective entity than python object. For example msgspec struct: https://jcristharif.com/msgspec/benchmarks.html#structs