Closed jodavies closed 6 months ago
Adding a test to the CI for this one is a bit tricky, because the number of terms required for the crash is system dependent.
This most recent commit seems like the best way to do this, but I don't see a performance difference compared to the commit before. I think NumberMalloc calls are just really cheap, and as long as you are not leaking and extending the buffer all of the time, it doesn't matter much how many you allocate.
You can rebase this PR like this: tueda/jodavies_issue-508_rebased
(then git diff
with 81862dc2567f2fd52b6c5da5cac59ab1e7f0b4c8 shows nothing).
Should I not just flatten all commits for a cleaner merge?
Right, in the end, squashing all to one or two commits is good. (I thought first rebasing is needed, but it seems that you can squash in one go.)
Now this seems fine. I will revisit it tomorrow morning and probably will merge it.
We need to call NumberFree each loop iteration, not only upon leaving execarg.
This fixes #508 but I think it needs more testing.