]> git.eshelyaron.com Git - emacs.git/commit
Jsonrpc: improve performance of process filter function
authorDaniel Pettersson <daniel@dpettersson.net>
Wed, 28 Feb 2024 12:03:56 +0000 (13:03 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 08:58:23 +0000 (09:58 +0100)
commit279b0603e9f5b52f7dc82edf56728321fa028a00
tree08c4bae6a7c131ebd751509cb6edd08b97c8e342
parent55ed4419ae556d6fe348ce9b2f62a6ee3ba63789
Jsonrpc: improve performance of process filter function

`run-at-time' keeps `timer-list' list sorted by inserting each
timer based on the timer value.  This means that
`timer--time-less-p' needs is executed ~N*N/2 times for each N
pending messages.  This means that jsonrpc becomes unusable
for connections that generate a lot messages at the same time.

* lisp/jsonrpc.el (Version): Bump to 1.0.25.
(jsonrpc--process-filter): Improve performance by activating
timers in a different order.  (Bug#69241)

(cherry picked from commit 7c552b22e64fa9173557e3511aa4e37ac1d5ea59)
lisp/jsonrpc.el