-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Perf improvement) Keep dynamically allocated memory in filterPeaks().
Allocating and freeing memory added an extra ~10% time in the example model included for testing. So, now it allocates on first use or if it needs a larger buffers. It never deallocates, but the memory consumption penalty is worth the runtime performance improvement, as we expect the model to be constantly running in the bacground.
- Loading branch information
1 parent
c220651
commit 9a57a68
Showing
1 changed file
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters