busybox/archival/libunarchive
Eric Andersen 1acfb72e71 Manuel Novoa III writes:
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
2003-10-18 01:59:46 +00:00
..
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 Marc A. Lehmann writes: 2003-09-11 08:32:40 +00:00
data_extract_to_buffer.c
data_extract_to_stdout.c
data_skip.c
decompress_bunzip2.c Manuel Novoa III writes: 2003-10-18 01:59:46 +00:00
decompress_uncompress.c
decompress_unzip.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
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 Fix bug when handling debian packages. 2003-07-31 01:53:50 +00:00
get_header_cpio.c Dont unlink when testing ! 2003-08-28 19:12:23 +00:00
get_header_tar_bz2.c
get_header_tar_gz.c
get_header_tar.c Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled. 2003-09-12 06:49:09 +00:00
header_list.c
header_skip.c
header_verbose_list.c
init_handle.c
Makefile Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
Makefile.in Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
seek_by_char.c
seek_by_jump.c
uncompress.c
unpack_ar_archive.c
unzip.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00