Skip to content

Commit 298d510

Browse files
committed
inline constants
1 parent c06976d commit 298d510

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Since [Hermes doesn't support the `Intl.Segmenter` API](https://github.com/faceb
215215

216216
| Name | Unicode® | ESM? | Size | Size (min) | Size (min+gzip) | Size (min+br) | Size (min+zstd) |
217217
|------------------------------|----------|------|----------:|-----------:|----------------:|--------------:|----------------:|
218-
| `unicode-segmenter/grapheme` | 16.0.0 | ✔️ | 16,752 | 12,562 | 5,308 | 3,968 | 5,013 |
218+
| `unicode-segmenter/grapheme` | 16.0.0 | ✔️ | 16,704 | 12,554 | 5,308 | 3,958 | 5,010 |
219219
| `graphemer` | 15.0.0 | ✖️ ️| 410,435 | 95,104 | 15,752 | 10,660 | 15,911 |
220220
| `grapheme-splitter` | 10.0.0 | ✖️ | 122,254 | 23,682 | 7,852 | 4,802 | 6,753 |
221221
| `@formatjs/intl-segmenter`* | 15.0.0 | ✖️ | 603,510 | 369,673 | 72,273 | 49,530 | 68,027 |

src/grapheme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ const
217217
*
218218
* Total: 14,272 bytes (~14KB)
219219
*/
220-
const SEG0 = new Uint8Array((SEG0_MAX - SEG0_MIN + 1) >> 1);
221-
const SEG1 = new Uint8Array((SEG1_MAX - SEG1_MIN + 1) >> 1);
220+
const SEG0 = new Uint8Array(6080);
221+
const SEG1 = new Uint8Array(8192);
222222
const SEG_CURSOR = (() => {
223223
let cursor = 0;
224224
while (cursor < grapheme_ranges.length) {

0 commit comments

Comments
 (0)