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:
@@ -350,8 +350,10 @@ json_skip_white(js_read_T *reader)
|
||||
if (reader->js_fill != NULL && c == NUL)
|
||||
{
|
||||
if (reader->js_fill(reader))
|
||||
{
|
||||
reader->js_end = reader->js_buf + STRLEN(reader->js_buf);
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (c == NUL || c > ' ')
|
||||
break;
|
||||
|
Reference in New Issue
Block a user