1acfb72e71
Hello Rob, Here's a patch to your bunzip-3.c file. Nice work btw. One minor bug fix... checking for error return when read()ing. Some size/performance optimizations as well. One instance of memset() seems unnecssary. You might want to take a look. Anyway, on my machine, decompressing linux-2.6.0-test7.tar.bz2 to /dev/null gave the following times: bunzip-3.c bzcat (system) bunzip-3.c (patched) real 0m24.420s 0m22.725s 0m20.701s user 0m23.930s 0m22.170s 0m20.180s sys 0m0.070s 0m0.080s 0m0.140s Size of the patched version is comparable (slightly larger or smaller depending on compiler flags). Manuel |
||
---|---|---|
.. | ||
archive_copy_file.c | ||
archive_xread_all_eof.c | ||
archive_xread_all.c | ||
archive_xread_char.c | ||
archive_xread.c | ||
check_header_gzip.c | ||
data_align.c | ||
data_extract_all.c | ||
data_extract_to_buffer.c | ||
data_extract_to_stdout.c | ||
data_skip.c | ||
decompress_bunzip2.c | ||
decompress_uncompress.c | ||
decompress_unzip.c | ||
filter_accept_all.c | ||
filter_accept_list_reassign.c | ||
filter_accept_list.c | ||
filter_accept_reject_list.c | ||
find_list_entry.c | ||
get_header_ar.c | ||
get_header_cpio.c | ||
get_header_tar_bz2.c | ||
get_header_tar_gz.c | ||
get_header_tar.c | ||
header_list.c | ||
header_skip.c | ||
header_verbose_list.c | ||
init_handle.c | ||
Makefile | ||
Makefile.in | ||
seek_by_char.c | ||
seek_by_jump.c | ||
uncompress.c | ||
unpack_ar_archive.c | ||
unzip.c |