job: increase JOB_BUFFER_SIZE to 0xFFFF

It used to be 1024 bytes, which is very tiny and slows down some operations
(imaging `cat`-ing a large file). Benchmarks show a large speedup for such
cases. ref #978.

For modern systems 0xFFFF bytes (65535 B = 64 KB = 0.0625 MB) per job
shouldn't be a big problem.
This commit is contained in:
Nicolas Hillegeer
2014-07-22 12:40:39 +02:00
committed by Thiago de Arruda
parent 6f30b25f45
commit 8bd1fe9523

View File

@@ -21,7 +21,7 @@
#define EXIT_TIMEOUT 25 #define EXIT_TIMEOUT 25
#define MAX_RUNNING_JOBS 100 #define MAX_RUNNING_JOBS 100
#define JOB_BUFFER_SIZE 1024 #define JOB_BUFFER_SIZE 0xFFFF
struct job { struct job {
// Job id the index in the job table plus one. // Job id the index in the job table plus one.