0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1666

Problem:    When reading JSON from a channel all readahead is used.
Solution:   Use the fill function to reduce overhead.
This commit is contained in:
Bram Moolenaar
2016-03-28 14:11:42 +02:00
parent 8038568722
commit 46c00a6565
4 changed files with 78 additions and 23 deletions

View File

@@ -2971,6 +2971,7 @@ struct js_reader
/* function to fill the buffer or NULL;
* return TRUE when the buffer was filled */
void *js_cookie; /* can be used by js_fill */
int js_cookie_arg; /* can be used by js_fill */
};
typedef struct js_reader js_read_T;