-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating C code is slow for EPS #167
Comments
Following Chris's advice in #62, I tried the Clinic Flame profiler. It crashed when running sde generate, so I tried the 0x project that is is based on.
This worked, although the flame graph is not as nice. However, the problem is clearly the A quick check showed that The solution is to cache the parsed CSV files so they are only read once. This reduced After this, the profiler did not show any standout CPU hogs, so I am satisfied with ending optimization efforts here. |
There is an additional problem that comes up when we generate code for the full output variable list in EPS. The speedup here was only 2.5x instead of 5x for the previous example with only one output variable. Here |
@ToddFincannon I was just about to point you at |
Generating C code for the EPS model takes 108 seconds on my Mac, which seems way too slow.
The text was updated successfully, but these errors were encountered: