Skip to content

feat(jieba): upgrade jieba-rs to 0.11.0 - #1212

Merged
Brooooooklyn merged 1 commit into
napi-rs:mainfrom
messense:jieba-rs-0.11
Sep 18, 2026
Merged

Brooooooklyn merged 1 commit into
napi-rs:mainfrom
messense:jieba-rs-0.11

Conversation

@messense

Copy link
Copy Markdown
Contributor

Summary

  • Bump the workspace jieba-rs dependency from 0.10 to 0.11.0. No source changes are needed; the addon builds and all jieba tests pass.
  • Refresh the README benchmark tables with a fresh run of @node-rs/jieba against nodejieba@3.5.8 (Apple M4 Max, Node.js v26.8.2).
  • Print a label before each tinybench table in benchmark/jieba.ts so the four suites can be told apart in the output.

Benchmark (throughput avg ops/s)

Suite @node-rs/jieba nodejieba
Cut 1184 words 16,342 7,497
Cut 246568 words 56 26
Tag 1184 words 6,315 3,281
Tag 246568 words 24 12

nodejieba was installed outside the workspace only for the measurement, so no new dependency is added.

Test plan

  • yarn build in packages/jieba
  • yarn ava packages/jieba/__tests__/*.spec.ts (5 passed)
  • yarn bench in packages/jieba

🤖 Generated with Claude Code

Bump the workspace jieba-rs dependency from 0.10 to 0.11.0. No source
changes are required; the addon builds and all tests pass.

Refresh the README benchmark tables with a fresh run of @node-rs/jieba
against nodejieba@3.5.8, and print a label before each tinybench table
so the suites can be told apart in the output.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Brooooooklyn

Copy link
Copy Markdown
Member

@messense great! Can you ask your agent to port SIMD optimization in https://github.com/Brooooooklyn/pinyin/tree/main/vendor/jieba-rs ?

@Brooooooklyn
Brooooooklyn merged commit 4f7587b into napi-rs:main Sep 18, 2026
36 checks passed
@messense
messense deleted the jieba-rs-0.11 branch September 19, 2026 01:32
@messense

Copy link
Copy Markdown
Contributor Author

@messense great! Can you ask your agent to port SIMD optimization in https://github.com/Brooooooklyn/pinyin/tree/main/vendor/jieba-rs ?

Didn’t see noticeable improvement: messense/jieba-rs#166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants