GNU bug report logs -
#20154
25.0.50; json-encode-string is too slow for large strings
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Fri, 20 Mar 2015 14:27:01 UTC
Severity: normal
Found in version 25.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 03/22/2015 07:31 PM, Eli Zaretskii wrote:
> But when you've encoded them once, you only need to encode the
> additions, no? If you can do this incrementally, the amount of work
> for each keystroke will be much smaller, I think.
It seems I've misunderstood you here, sorry.
The question of "why encode everything again" comes to down programmer's
convenience, and not re-implementing parts of the JSON encoder.
At least until `json-encode' has a way to pass an already-encoded string
verbatim, how else would you encode an alist like
`(("file_data" .
((,full-path . (("contents" . ,file-contents)
("filetypes" . ,file-types)))))
("filepath" . ,full-path)
("line_num" . ,line-num)
("column_num" . ,column-num))
to JSON, except by encoding everything again?
This bug report was last modified 10 years and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.