mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
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:

committed by
Thiago de Arruda

parent
6f30b25f45
commit
8bd1fe9523
@@ -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.
|
||||||
|
Reference in New Issue
Block a user