LonnyGomes / hexcurse

Hexcurse is a ncurses-based console hexeditor written in C
Other
180 stars 17 forks source link

Improve search #39

Open prso opened 3 years ago

prso commented 3 years ago

I have integrated the branch feature-12-improved_search that includes Boyer-Moore string search algorithm contributed by @samozrejmost and some fixes and code cleaning from myself.

According to my tests searching a string at the end of a cached file of 2.6 GB takes 2 min 48 s with the old algorithm, and less than 8 s with the Boyer-Moore algorithm, so the improvement is massive.