open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

Optimize read/write operations between models #759

Open davidhjp01 opened 5 months ago

davidhjp01 commented 5 months ago

With large numbers of FMU's input and output ports and connections, there is a significant performance degradation due to many iterative value transfers (reads/writes) between FMU ports.

I have only briefly went over how this operation is performed. But for the simulations without using ProxyFMU, we can probably optimize this process via pointer swapping? Also there are value modifiers, which we can use of some parallel loops (any other suggestions?) .