主页
生成二进制文件很简单
/par/ppmd-mini-master# make
cc -Ilib -g -O3 -flto -fwhole-program -Wall -Wextra -o ppmd-mini ppmd-mini.c lib/Ppmd8.c lib/Ppmd8Dec.c lib/Ppmd8Enc.c
/par/ppmd-mini-master# ./ppmd-mini
ppmid-mini: compressed data cannot be written to a terminal
/par/ppmd-mini-master# time ./ppmd-mini sheet1.ppmd ../10/x/xl/worksheets/sheet1.xml
ppmid-mini: too many arguments
Usage: ppmid-mini [-d] [-k] [-c] [FILE]
/par/ppmd-mini-master# time ./ppmd-mini -k ../10/x/xl/worksheets/sheet1.xml
real 0m29.257s
user 0m19.373s
sys 0m0.659s
time ../myzips ../10/x/xl/worksheets/sheet1.xml
写入sheet1.xml文件数据
成功创建ZIP文件: output.zip (1个条目)
real 0m15.089s
user 0m8.063s
sys 0m0.746s
root@6ae32a5ffcde:/par/ppmd-mini-master# ls -l output.zip
-rwxrwxrwx 1 root root 123923992 Aug 31 13:32 output.zip
root@6ae32a5ffcde:/par/ppmd-mini-master# time xz -k ../10/x/xl/worksheets/sheet1.xml
real 3m44.080s
user 3m31.611s
sys 0m0.587s
root@6ae32a5ffcde:/par/ppmd-mini-master# ls -l ../10/x/xl/worksheets/sheet1*
-rwxrwxrwx 1 root root 439043188 Jul 2 2012 ../10/x/xl/worksheets/sheet1.xml
-rwxrwxrwx 1 root root 91712087 Aug 31 13:25 ../10/x/xl/worksheets/sheet1.xml.ppmd
-rwxrwxrwx 1 root root 83660036 Jul 2 2012 ../10/x/xl/worksheets/sheet1.xml.xz
可见,压缩时间约是zip的两倍,大小约是zip的75%,虽然比xz格式大10%,但压缩时间仅为xz的1/7.
1191

被折叠的 条评论
为什么被折叠?



