Opened 10 years ago
Closed 9 years ago
#3812 closed enhancement (fixed)
Functions that depend on parameters should only get evaluated once
| Reported by: | Lennart Ochel | Owned by: | Patrick Täuber |
|---|---|---|---|
| Priority: | high | Milestone: | Future |
| Component: | Backend | Version: | |
| Keywords: | Cc: | Patrick Täuber, jhagemann@… |
Description
In certain cases, function evaluations is a bottleneck in simulation performance. Therefore, function calls should only get evaluated if necessary. Some of this optimizations are already implemented in the optimization module wrapFunctionCalls. However, there are still function calls which depend on parameter expressions and get evaluated for each simulation step. This is totally unnecessary.
Change History (8)
comment:1 by , 10 years ago
| Status: | new → accepted |
|---|
follow-up: 3 comment:2 by , 10 years ago
comment:3 by , 10 years ago
Replying to sjoelund.se:
Can the same be done for discrete-variability functions?
I have that in mind as well. However, that would require different changes and thus it's a different story. I have plans to split the simulation into continuous simulation and discrete simulation which would solve this issue in a nice way.
comment:5 by , 9 years ago
| Owner: | changed from to |
|---|
comment:6 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
With a919ef4 constant function calls are only evaluated once.
comment:7 by , 9 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:8 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
With 2cb1d8f constant function calls are only evaluated once.

Can the same be done for discrete-variability functions?