aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorMattias EngdegÄrd2025-09-06 10:44:43 +0200
committerMattias EngdegÄrd2025-09-07 14:39:24 +0200
commitc13c620f12e2f874d22715e7b1dcd06bb5ed1930 (patch)
tree9fc8c7cdf515309983c00a973d8fb65575dc4519 /java/org/gnu
parent36c8ebe78a048db7886f070168858d457b486caf (diff)
downloademacs-c13c620f12e2f874d22715e7b1dcd06bb5ed1930.tar.gz
emacs-c13c620f12e2f874d22715e7b1dcd06bb5ed1930.zip
Less expensive jsonrpc logging (bug#79361)
Remove the oldest 1/4 of the jsonrpc events buffer when reaching the size limit instead of just a few lines. This reduces the cost of adding a log entry from O(buffer-size) to O(1). Also make messages forwarded to the events buffer, such as ones sent to stderr from the server process, obey the same limit. * lisp/jsonrpc.el (jsonrpc--limit-buffer-size): New. (jsonrpc--log-event, jsonrpc--forwarding-buffer): Use it.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions