Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 95c3216

Browse files
authored
Merge pull request #36 from sergeyzenchenko/master
Update TextDecoder string size threshold
2 parents 5688698 + cadeb17 commit 95c3216

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎benchmark/msgpack-benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const implementations = {
1616
decode: require("msgpack-lite").decode,
1717
},
1818
"notepack.io": {
19-
encode: require("notepack.io").encode,
20-
decode: require("notepack.io").decode,
19+
encode: require("notepack.io/browser/encode"),
20+
decode: require("notepack.io/browser/decode"),
2121
},
2222
};
2323

‎src/utils/utf8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function safeStringFromCharCode(units: Array<number> | Uint16Array) {
9898
return result;
9999
}
100100

101-
const MIN_TEXT_DECODER_STRING_LENGTH = 32;
101+
const MIN_TEXT_DECODER_STRING_LENGTH = 200;
102102
const defaultEncoding = "utf-8";
103103
const sharedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder(defaultEncoding) : null;
104104

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /