Skip to content

Commit

Permalink
perf: make _occ Uint8Array (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday authored Nov 28, 2024
1 parent 9104e51 commit 67b2cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/streamsearch/sbmh.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function SBMH (needle) {
this.maxMatches = Infinity
this.matches = 0

this._occ = new Array(256)
this._occ = new Uint8Array(256)
.fill(needleLength) // Initialize occurrence table.
this._lookbehind_size = 0
this._needle = needle
Expand Down

0 comments on commit 67b2cbb

Please sign in to comment.