@
est 恩,是的,别误会,我也觉得lz4是极好的,也比较了一下时间~
只是贴个数据提供下参考,刚那个结果贴错了~
test a million repeated characters:
source len: 1000000
zipped len: 992
lz4ed len: 3936
zip ratio: 1008.06451613
lz4 ratio: 254.06504065
ratio zip/lz4: 3.96774193548
zip time: 0.00992608070374
lz4 time: 0.000288963317871
time zip/lz4: 34.350660066
------------------------------
test in real world:
source len: 574703
zipped len: 133373
lz4ed len: 194073
zip ratio: 4.3089905753
lz4 ratio: 2.96127230475
ratio zip/lz4: 1.45511460341
zip time: 0.023008108139
lz4 time: 0.00155091285706
time zip/lz4: 14.8352036895