messense / jieba-rs

The Jieba Chinese Word Segmentation Implemented in Rust
MIT License
738 stars 46 forks source link

Move the HMM memory allocation out of the loop #46

Closed MnO2 closed 5 years ago

MnO2 commented 5 years ago
➜  jieba-rs git:(optimize-hmm-allocation) ✗ ./target/release/weicheng
3707ms
codecov[bot] commented 5 years ago

Codecov Report

Merging #46 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #46   +/-   ##
=======================================
  Coverage   96.73%   96.73%           
=======================================
  Files           3        3           
  Lines         184      184           
=======================================
  Hits          178      178           
  Misses          6        6

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3fb798b...a2b9c1a. Read the comment docs.