-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used FSA allocator for jump table in KMP index algorithm
We can save cpu cycles by using FSA, since we just end up freeing it as soon as the function returns. Also, since the loop is duplicated, turn it into a #define so we can use the same code with different functions for accessing the Haystack.
- Loading branch information
Showing
1 changed file
with
20 additions
and
24 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
This is always going to just end up using MVM_malloc anyway, since it'll only hit when next_size is >= 4096, which is greater than the max bin size.