Improve performance of getting and putting MJX device data with large numpy arrays.

ndarray.tobytes() is faster than converting arrays to tuples by orders of magnitude.

PiperOrigin-RevId: 605437697
Change-Id: I7d42c10e178b1aec80ff38a82e863e0701c15e62
This commit is contained in:
Erik Frey
2024-02-08 15:00:47 -08:00
committed by Copybara-Service
parent 1fe258fb60
commit 3e2d62c248
2 changed files with 15 additions and 5 deletions
+8
View File
@@ -2,6 +2,14 @@
Changelog
=========
Upcoming version (not yet released)
-----------------------------------
MJX
^^^
1. Improved performance of getting and putting device data by using a faster numpy array serialization method.
Version 3.1.2 (February 05, 2024)
-----------------------------------