ACAutomatic 多模匹配算法,比普通单模匹配效率高出几百倍,随着文章长度和要匹配的单词个数增加效率收益更高 下面是在千字以上的文章,100+个单词时的效率对比
old code in 2644.506991 ms
old code in 2488.714993 ms
old code in 2800.940990 ms
old code in 2505.403996 ms
old code in 2559.985042 ms
new code in 5.616009 ms
new code in 7.314026 ms
new code in 3.198028 ms
new code in 3.608048 ms
new code in 5.766034 ms