Skip to content

Commit 6c8b4b4

Browse files
Version Packages (#107)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8b23df9 commit 6c8b4b4

File tree

4 files changed

+26
-28
lines changed

4 files changed

+26
-28
lines changed

.changeset/shiny-buttons-bathe.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/wild-candles-count.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# unicode-segmenter
22

3+
## 0.14.3
4+
5+
### Patch Changes
6+
7+
- 65c38ce: Move GB9c rule checking to be _after_ the main boundary checking.
8+
To try to avoid unnecessary work as much as possible.
9+
10+
No noticeable changes, but perf seems to be improved by ~2% for most cases.
11+
12+
- 8b23df9: Two further optimizations:
13+
14+
1. Remove inlined ranges from the data file.
15+
2. Add inlined range: 0xAC00-0xD7A3 (Hangul syllables) can easily be inlined.
16+
17+
The 1 is something I forgot in #104 task, but it was a slight chance.
18+
19+
Btw, the number 2 is a huge finding. It is a pretty extensive range to be newly inlined.
20+
Applying both optimizations significantly reduced the bundle size and memory footprint.
21+
22+
- Size(min): 12,549 bytes -> 6,846 bytes (-45.5%)
23+
- Size(min+gz): 5,314 bytes -> 3,449 bytes (-35.1%)
24+
- Index memory usage: 14,272 bytes -> 8,686 bytes (-39.2%)
25+
26+
Of course, without perf regression.
27+
328
## 0.14.2
429

530
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unicode-segmenter",
3-
"version": "0.14.2",
3+
"version": "0.14.3",
44
"type": "module",
55
"description": "A lightweight implementation of the Unicode Text Segmentation (UAX #29)",
66
"license": "MIT",

0 commit comments

Comments
 (0)