Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 16bit to store KMP jump table. Set max needle to 8192
Also malloc the memory instead of putting it onto the stack if it is going to be more than 4069 bytes. Not 100% sure this is needed, but don't want to allocate too much to the stack since some platforms may have smaller stack size than current versions of Linux, Windows or MacOS do.
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 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