commit | 46c00a6565b8f1f4b7b1041d03eaceaf6ffc4aee | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Mar 28 14:11:42 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Mar 28 14:11:42 2016 +0200 |
tree | 097071177477e304c3f7e1438c090ba8ff72bfbf | |
parent | 8038568722a0aad72d001edf4972c29abab57f8f [diff] [blame] |
patch 7.4.1666 Problem: When reading JSON from a channel all readahead is used. Solution: Use the fill function to reduce overhead.
diff --git a/src/structs.h b/src/structs.h index abfe6cd..68b7917 100644 --- a/src/structs.h +++ b/src/structs.h
@@ -2971,6 +2971,7 @@ /* 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;