jgori-ouistiti / CoopIHC

Two-agent component-based interaction environments for computational HCI with Python
https://jgori-ouistiti.github.io/CoopIHC/
MIT License
1 stars 1 forks source link

Profiling the library and optimize bottlenecks #40

Open jgori-ouistiti opened 2 years ago

jgori-ouistiti commented 2 years ago

During a round of CoopIHC, many things happen, and altogether, it results in a rather slow round. To realistically use coopihc to define environments from which to sample efficiently, this needs to be improved. Steps and resets are the main targets here, since initialization will be rare.

Some ideas are: Subclass State from dict rather than ordereddict (dict preserves order since python3.7/3.8) Generalize the use of numpy arrays, operators and functions wherever possible Explore libraries like Numba, brax-jumpy, tiny_arrays

christophajohns commented 2 years ago

Relates to #23 as individual unit and integration tests can additionally be used to run performance tests.