Rusty Russell
98bd95cb2e
lightningd: optimize find_cmd.
...
We have a reasonable number of commands now, and we *already* keep a
strmap for the usage strings. So simply keep the usage and the command
in the map, and skip the array.
tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 95 seconds (was 102)
Worst latency: 4.5 seconds
tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, Postgres):
Time (from start to end of l2 node): 231 seconds
Worst latency: 4.8 seconds
Note the values compare against 25.09.2 (Postgres):
sqlite3:
Time (from start to end of l2 node): 403 seconds
Postgres:
Time (from start to end of l2 node): 671 seconds
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2025-11-20 16:30:50 +10:30
..
2025-11-20 16:30:50 +10:30
2025-10-23 06:44:04 +10:30
2025-10-24 11:30:17 +10:30
2025-11-19 07:23:39 +10:30
2025-10-24 11:30:17 +10:30
2025-10-24 11:30:17 +10:30
2025-11-19 07:23:39 +10:30
2025-05-15 16:40:33 +09:30
2025-11-19 14:29:08 +10:30
2025-05-15 16:40:33 +09:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2024-11-25 20:23:21 +10:30
2025-11-13 21:21:29 +10:30
2025-08-19 13:37:50 +09:30
2025-10-26 12:37:58 +10:30
2025-11-20 16:30:50 +10:30
2025-11-12 13:58:43 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2024-06-19 15:54:24 +09:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-11-17 09:14:19 +10:30
2025-10-23 06:44:04 +10:30
2025-11-13 21:21:29 +10:30
2024-03-20 13:51:48 +10:30
2025-10-26 12:37:58 +10:30
2025-10-26 12:37:58 +10:30
2025-11-13 21:21:29 +10:30
2025-08-14 18:57:05 +09:30
2025-11-10 15:05:27 +10:30
2025-11-10 15:05:27 +10:30
2025-11-17 10:56:18 +10:30
2025-11-10 15:05:27 +10:30
2025-11-20 16:30:50 +10:30
2025-08-18 10:01:07 +09:30
2025-11-19 07:23:39 +10:30
2025-11-13 21:21:29 +10:30
2025-11-13 21:21:29 +10:30
2024-12-16 09:48:51 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 14:29:08 +10:30
2025-11-18 14:28:22 +10:30
2025-10-01 12:12:56 +09:30
2025-10-24 16:23:37 +10:30
2025-11-19 07:23:39 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2024-06-19 15:54:24 +09:30
2025-11-13 21:21:29 +10:30
2025-03-12 09:26:08 +10:30
2025-11-13 21:21:29 +10:30
2024-10-27 13:57:50 +11:00
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-10-23 06:44:04 +10:30
2025-11-17 10:56:18 +10:30
2025-08-14 18:57:05 +09:30
2025-10-23 06:44:04 +10:30
2025-08-14 17:35:39 +09:30
2025-10-23 06:44:04 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-10-23 06:44:04 +10:30
2025-11-13 21:21:29 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-11-12 13:58:43 +10:30
2025-11-12 13:58:43 +10:30
2025-01-21 09:18:25 +10:30
2025-01-21 09:18:25 +10:30