messense / jieba-rs

The Jieba Chinese Word Segmentation Implemented in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compare the memory footprint with cppjieba

MnO2 opened this issue · comments

  • Using what tools to fairly calculate the memory usage?
  • Compare the executable binary size as well.

Is there a real thing to compare here?

AFAICT, the only dynamic allocations are for the dictionary struct and then the hmm state struct. Most everything else seems stack-based, and O(k) where k = sentence length... I would be surprised if there was any real memory size diff that mattered...