Revert "Make threads spawn at regular intervals along chunk size thus speeding up compression."

This reverts commit 688aa55c79.
This commit is contained in:
Con Kolivas 2010-12-08 21:25:00 +11:00
parent 5be0f6c5c9
commit 8dd9b00496
2 changed files with 10 additions and 17 deletions

View file

@ -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);