Sanaei
7fc86f87de
perf(inbounds): keep unchanged rows and online sets across websocket pushes
...
Every client_stats push carries the totals of all inbounds, and
applyClientStatsEvent rebuilt each row it listed, so every push replaced
all rows, re-ran the client rollup (a JSON parse of every inbound's
settings) and re-rendered the whole table even when no number moved. Every
traffic push also built new online and active maps, re-running the same
rollup.
Rows are now rebuilt only when their totals or a client's numbers change,
and the previous maps are kept when a push repeats the same sets. Measured
in jsdom with 450 inbounds of 50 clients each: an unchanged client_stats
push went from 7.9ms to 0.6ms with no row rebuilt, and a repeated traffic
push from 13.5ms to 8.3ms without the rollup.
History
..
2026-09-09 01:53:00 +02:00
2026-09-09 01:53:00 +02:00
2026-07-08 13:28:37 +02:00
2026-08-24 02:41:15 +02:00
2026-09-08 16:55:32 +02:00
2026-09-03 21:50:23 +02:00
2026-09-10 14:50:48 +02:00
2026-09-04 14:57:29 +02:00
2026-08-19 15:36:27 +02:00
2026-09-10 17:53:49 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-14 15:59:34 +02:00
2026-07-17 00:33:06 +02:00
2026-09-14 15:59:34 +02:00
2026-09-14 12:10:25 +02:00
2026-08-19 15:36:27 +02:00
2026-09-03 22:32:05 +02:00
2026-08-19 15:36:27 +02:00
2026-09-12 10:15:48 +02:00
2026-09-13 12:44:55 +02:00
2026-09-13 12:44:55 +02:00
2026-09-13 21:27:15 +02:00
2026-07-17 00:33:06 +02:00
2026-06-11 12:10:49 +02:00
2026-08-24 02:41:15 +02:00
2026-09-13 12:44:55 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-10 17:53:49 +02:00
2026-09-03 22:32:05 +02:00
2026-08-19 15:36:27 +02:00
2026-07-09 00:45:35 +02:00
2026-09-09 00:47:18 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-07-29 08:03:21 +02:00
2026-08-19 15:36:27 +02:00
2026-09-08 18:08:24 +02:00
2026-09-14 12:08:38 +02:00
2026-07-28 23:03:13 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-13 20:02:43 +02:00
2026-09-13 12:53:57 +02:00
2026-09-13 12:53:57 +02:00
2026-08-19 15:36:27 +02:00
2026-09-12 10:15:48 +02:00
2026-06-29 14:32:23 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-12 10:15:48 +02:00
2026-09-12 11:14:53 +02:00
2026-08-19 15:36:27 +02:00
2026-09-08 18:08:24 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-13 22:03:50 +02:00
2026-09-12 10:15:48 +02:00
2026-09-12 10:15:48 +02:00
2026-09-08 18:08:24 +02:00
2026-09-15 21:06:32 +02:00
2026-08-19 15:36:27 +02:00
2026-09-03 16:33:37 +02:00
2026-09-12 10:15:48 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-14 16:00:13 +02:00
2026-09-13 12:44:55 +02:00
2026-07-17 00:33:06 +02:00
2026-09-02 20:20:10 +02:00
2026-08-19 15:36:27 +02:00
2026-07-28 23:03:13 +02:00
2026-09-03 21:20:38 +02:00
2026-09-11 11:59:35 +02:00
2026-08-19 15:36:27 +02:00
2026-09-15 16:00:05 +02:00
2026-09-14 12:08:38 +02:00
2026-09-14 19:53:57 +03:00
2026-09-13 22:28:13 +02:00
2026-09-14 15:02:58 +02:00
2026-08-19 15:36:27 +02:00
2026-09-14 19:53:57 +03:00
2026-08-22 23:11:06 +02:00
2026-09-14 19:53:05 +03:00
2026-06-25 02:36:41 +02:00
2026-08-22 23:11:06 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-09-03 16:32:27 +02:00
2026-09-12 11:13:45 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-22 23:13:34 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-06-28 18:10:38 +02:00
2026-07-28 22:12:52 +02:00
2026-09-08 17:14:01 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-07-08 13:28:37 +02:00
2026-05-27 04:26:50 +02:00
2026-06-14 22:39:40 +02:00
2026-07-17 00:33:06 +02:00
2026-08-19 15:36:27 +02:00
2026-07-14 13:00:25 +02:00
2026-07-02 12:53:08 +02:00
2026-08-19 15:36:27 +02:00
2026-09-08 18:08:24 +02:00
2026-08-19 15:36:27 +02:00
2026-09-02 20:21:27 +02:00
2026-09-13 12:44:55 +02:00
2026-08-19 15:36:27 +02:00
2026-09-03 16:35:07 +02:00
2026-09-12 10:15:48 +02:00
2026-06-24 12:54:05 +02:00
2026-08-24 14:56:40 +02:00
2026-09-14 15:02:58 +02:00
2026-09-14 16:00:13 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-07-17 00:33:06 +02:00
2026-07-17 00:33:06 +02:00
2026-08-19 15:36:27 +02:00
2026-08-19 15:36:27 +02:00
2026-06-23 17:38:16 +02:00
2026-08-19 15:36:27 +02:00