为什么是这样?
07月 12, 2007 on 1:25 am | In Ruby, 未分类 |优化ruby版的分词,从44s每一千文本文件到了20多秒每一千文本文件后,再也优化不下去了。烦闷之极,发现这个现象:
[st@localhost segment]$ ruby segment.rb
time:24.292177
[st@localhost segment]$ ruby segment.rb
time:18.223328
[st@localhost segment]$ ruby segment.rb
time:17.331675
[st@localhost segment]$ ruby segment.rb
time:17.316683
[st@localhost segment]$ ruby segment.rb
time:17.275409
太神了,我连打几次命令,它自已运行就越来越快了?
1条评论 »
发表评论
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
哈哈,什么时候把照片贴上了,是不是觉得很帅啊?
评论 由 hanhan — 07月 12, 2007 #