jieba-rs
jieba-rs copied to clipboard
Compare the memory footprint with cppjieba
- Using what tools to fairly calculate the memory usage?
- Compare the executable binary size as well.
Tool on Mac: https://www.swiftdevjournal.com/measuring-your-apps-memory-usage-with-instruments/ Tool on Linux: http://www.brendangregg.com/FlameGraphs/memoryflamegraphs.html
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...