diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-22 12:40:39 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-07-27 14:00:44 -0300 |
commit | 8bd1fe9523e34cbce6f506a4058c79f6e2cb8cdd (patch) | |
tree | e19f8b6c1a13b5b5a8b538efa94f4af693898aba | |
parent | 6f30b25f455d30bb31b143b292f5d080ff64b4a3 (diff) | |
download | rneovim-8bd1fe9523e34cbce6f506a4058c79f6e2cb8cdd.tar.gz rneovim-8bd1fe9523e34cbce6f506a4058c79f6e2cb8cdd.tar.bz2 rneovim-8bd1fe9523e34cbce6f506a4058c79f6e2cb8cdd.zip |
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.
-rw-r--r-- | src/nvim/os/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c index 1f73eeaf8d..01a529d533 100644 --- a/src/nvim/os/job.c +++ b/src/nvim/os/job.c @@ -21,7 +21,7 @@ #define EXIT_TIMEOUT 25 #define MAX_RUNNING_JOBS 100 -#define JOB_BUFFER_SIZE 1024 +#define JOB_BUFFER_SIZE 0xFFFF struct job { // Job id the index in the job table plus one. |