mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-07 07:14:06 +00:00
Revert "Make threads spawn at regular intervals along chunk size thus speeding up compression."
This reverts commit 688aa55c79.
This commit is contained in:
parent
5be0f6c5c9
commit
8dd9b00496
2 changed files with 10 additions and 17 deletions
4
stream.c
4
stream.c
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "rzip.h"
|
||||
|
||||
#define STREAM_BUFSIZE (1024 * 1024 * 10)
|
||||
|
||||
struct compress_thread{
|
||||
uchar *s_buf; /* Uncompressed buffer -> Compressed buffer */
|
||||
uchar c_type; /* Compression type */
|
||||
|
|
@ -931,8 +933,6 @@ void flush_buffer(struct stream_info *sinfo, int stream)
|
|||
{
|
||||
long i = sinfo->thread_no;
|
||||
|
||||
sinfo->s[stream].eos++;
|
||||
|
||||
/* Make sure this thread doesn't already exist */
|
||||
wait_sem(&cthread[i].free);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue