aboutsummaryrefslogtreecommitdiffstats
path: root/java/res
diff options
context:
space:
mode:
authorMattias EngdegÄrd2025-09-04 11:22:57 +0200
committerMattias EngdegÄrd2025-09-07 14:39:24 +0200
commit36c8ebe78a048db7886f070168858d457b486caf (patch)
treefa4bc9f4a368b4e61915fa76c974567ceb02d9c2 /java/res
parent11b3af64251a899c697b685cf7b311274be8dc6d (diff)
downloademacs-36c8ebe78a048db7886f070168858d457b486caf.tar.gz
emacs-36c8ebe78a048db7886f070168858d457b486caf.zip
Avoid unnecessary text decoding in jsonrpc for speed (bug#79361)
The built-in JSON parser works on undecoded (unibyte) input; decoding received data is just a waste and does take time even when all-ASCII. * lisp/jsonrpc.el (initialize-instance): Use unibyte process buffer and binary coding for process I/O, implying unibyte strings being passed to the filter function. (jsonrpc-connection-send): More efficient message generation. (jsonrpc--json-read): Compatibility code for the old elisp json parser. (jsonrpc--process-filter): Faster header-matching regexp.
Diffstat (limited to 'java/res')
0 files changed, 0 insertions, 0 deletions