Hờ hờ. Cái lz4 này thú vị à nha -- nhanh hơn rất nhiều so với gzip. Tẹo bao giờ em upload cái source của bạn lz4 em đã sửa và các scripts để benchmark lên github các bác thử chơi.
Bây giờ thì phải tạm dùng pipe, điều này làm giảm performance của một thuật toán nhanh như lz4 nhiều, em đang tìm cách patch libarchive để dùng với lz4. 1634!lol:~/src/lz4-read-only$ time ./tar-none.sh ../linux-3.0-rc6 linux-sauce real 0m4.390s user 0m0.620s sys 0m0.870s 1635!lol:~/src/lz4-read-only$ time ./tar-gzip.sh ../linux-3.0-rc6 linux-sauce real 0m43.683s user 0m40.901s sys 0m0.319s 1636!lol:~/src/lz4-read-only$ time ./tar-lz4.sh ../linux-3.0-rc6 linux-sauce real 0m5.568s user 0m4.831s sys 0m0.272s 1637!lol:~/src/lz4-read-only$ ls -la linux-sauce.tar* -rw-r--r-- 1 LOLLOL 450938880 Jul 8 02:21 linux-sauce.tar -rw-r--r-- 1 LOLLOL 99535343 Jul 8 02:22 linux-sauce.tar.gz -rw-r--r-- 1 LOLLOL 164175450 Jul 8 02:22 linux-sauce.tar.lz4 1644!lol:~/src/lz4-read-only$ ./lz4 -d linux-sauce.tar.lz4 linux-sauce.tar.decompressed 1645!lol:~/src/lz4-read-only$ md5sum linux-sauce.tar* da46c8f50e5dd7c9e8110332085fb68c linux-sauce.tar da46c8f50e5dd7c9e8110332085fb68c linux-sauce.tar.decompressed ... -- Open source is a privilege, not an entitlement. _______________________________________________ POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines _______________________________________________ HanoiLUG mailing lists: http://lists.hanoilug.org/ HanoiLUG wiki: http://wiki.hanoilug.org/ HanoiLUG blog: http://blog.hanoilug.org/