yanyiwu / cppjieba

"结巴"中文分词的C++版本
MIT License
2.6k stars 691 forks source link

问个问题:demo 您的Makefile编译比我自己编译的快5倍 #90

Closed hxsnow10 closed 1 month ago

hxsnow10 commented 7 years ago

我自己就是g++ -o demo demo.cpp 计算了时间,你编译后的demo Cut运行速度快5倍

我不太懂你的Makefile,请问您用了什么参数,我用什么样的命令编译也能这么快吗?

我写了个python版本的接口,生成.so文件,我在想用你的编译方法,能让这个接口的分词速度也快5倍吗?

谢谢!

yanyiwu commented 7 years ago

试试 g++ -O3 -o demo demo.cpp

hxsnow10 commented 7 years ago

可以 ! 谢谢

github-actions[bot] commented 1 month ago

This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.

github-actions[bot] commented 1 month ago

This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.