Skip to content

Commit 67b2cbb

Browse files
authored
perf: make _occ Uint8Array (#176)
1 parent 9104e51 commit 67b2cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/streamsearch/sbmh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function SBMH (needle) {
5252
this.maxMatches = Infinity
5353
this.matches = 0
5454

55-
this._occ = new Array(256)
55+
this._occ = new Uint8Array(256)
5656
.fill(needleLength) // Initialize occurrence table.
5757
this._lookbehind_size = 0
5858
this._needle = needle

0 commit comments

Comments
 (0)