libcosim icon indicating copy to clipboard operation
libcosim copied to clipboard

Optimize read/write operations between models

Open davidhjp01 opened this issue 1 year ago • 1 comments

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?) .

davidhjp01 avatar Jun 03 '24 04:06 davidhjp01

@restenb and @davidhjp01 will do profiling to pinpoint the performance bottleneck

THEvang avatar Jan 22 '25 13:01 THEvang