David Mann
c78c49e2f7
Menus: collect the Help search's commands only while Help shows; shown chords without allocating
...
Two costs every frame paid, found in a profile of PhotoCraft on the
framework (storytold/photocraft#15493 ):
- `MenuBarUi::show` collected the Help search's entries (every row of
every menu, with English labels) on every pass whenever the bar had a
Help menu, open or not. `MenuHelp::built` takes a builder the bar runs
only in a pass that shows the Help menu; `MenuHelp::new` keeps taking a
ready list.
- `Keymap::shown_chord`, which every menu row, tooltip and button asks
each pass, built the command's key string for every `find` and ran a
full `lookup` per binding, cloning the winning commands only to look
their keys up again. `find` now looks up a command without parameters
by its id, and `press_runs` decides on catalog positions. Answers are
unchanged; a new test covers tools sharing a chord (a cycle within a
group, the first of two groups), which no test covered.
Measured in PhotoCraft (Windows 11, idle machine, three runs, together
with PhotoCraft's own storytold/photocraft#15496 ): UI pass with a pointer
over the canvas 8.7-11.3 ms -> 4.9-5.0 ms, during a menu hover
9.2-10.2 ms -> 6.7-7.1 ms.
Part of storytold/photocraft#15493 .
2026-11-17 21:04:10 +01:00
..
2026-11-16 14:23:07 +00:00
2026-11-14 02:35:35 +00:00
2026-11-16 21:36:17 -05:00
2026-11-16 21:37:13 -05:00
2026-11-14 00:15:29 +00:00
2026-11-14 03:12:01 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 15:40:46 +00:00
2026-11-17 14:59:50 +00:00
2026-11-14 20:57:04 -05:00
2026-11-15 04:46:05 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 12:54:32 +00:00
2026-11-17 15:56:17 +00:00
2026-11-16 09:55:33 -05:00
2026-11-15 19:05:00 +00:00
2026-11-17 12:54:32 +00:00
2026-11-12 11:26:10 -05:00
2026-11-14 00:15:29 +00:00
2026-11-17 12:44:52 +00:00
2026-11-13 21:11:56 -05:00
2026-11-16 21:59:19 +01:00
2026-11-15 23:44:31 +01:00
2026-11-17 12:54:32 +00:00
2026-11-14 02:12:23 -05:00
2026-11-16 12:53:08 +00:00
2026-11-14 00:35:31 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 01:52:09 +00:00
2026-11-16 03:03:33 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 02:42:09 +01:00
2026-11-17 12:54:32 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 03:03:33 +00:00
2026-11-14 00:15:29 +00:00
2026-11-16 08:18:20 -05:00
2026-11-14 06:10:27 -05:00
2026-11-14 01:58:46 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 21:58:20 +01:00
2026-11-17 12:54:32 +00:00
2026-11-14 13:45:31 -05:00
2026-11-13 14:20:19 +00:00
2026-11-13 07:47:09 -05:00
2026-11-13 08:00:22 -05:00
2026-11-12 10:05:07 -05:00
2026-11-17 12:44:52 +00:00
2026-11-16 14:23:07 +00:00
2026-11-17 01:37:58 +00:00
2026-11-17 14:09:16 +00:00
2026-11-14 02:35:35 +00:00
2026-11-15 04:46:05 +00:00
2026-11-16 05:25:45 +01:00
2026-11-17 14:28:37 +00:00
2026-11-16 01:52:09 +00:00
2026-11-16 03:03:33 +00:00
2026-11-15 14:41:14 +00:00
2026-11-16 20:36:13 -05:00
2026-11-17 12:44:52 +00:00
2026-11-15 12:06:39 +00:00
2026-11-17 12:44:52 +00:00
2026-11-15 16:53:07 -05:00
2026-11-16 01:52:09 +00:00
2026-11-14 05:51:17 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 12:54:32 +00:00
2026-11-14 01:25:10 +00:00
2026-11-16 09:55:22 -05:00
2026-11-16 01:52:09 +00:00
2026-11-16 00:22:34 +01:00
2026-11-13 23:47:44 +00:00
2026-11-17 21:04:10 +01:00
2026-11-14 13:45:31 -05:00
2026-11-16 21:29:55 -05:00
2026-11-17 03:07:07 +00:00
2026-11-16 23:26:35 -05:00
2026-11-16 11:47:05 +01:00
2026-11-17 14:28:37 +00:00
2026-11-15 10:20:02 +00:00
2026-11-14 02:35:35 +00:00
2026-11-15 11:38:06 +00:00
2026-11-15 15:29:27 +00:00
2026-11-16 06:02:29 -05:00
2026-11-17 12:44:52 +00:00
2026-11-16 15:51:32 -05:00
2026-11-17 12:44:52 +00:00
2026-11-17 21:04:10 +01:00
2026-11-17 12:44:52 +00:00
2026-11-16 14:23:07 +00:00
2026-11-17 12:50:26 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 01:52:09 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 21:35:45 -05:00
2026-11-16 21:30:17 -05:00
2026-11-13 03:47:36 +00:00
2026-11-14 13:45:31 -05:00
2026-11-16 22:02:07 +00:00
2026-11-16 22:30:28 -05:00
2026-11-14 21:49:09 +08:00
2026-11-16 03:03:33 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 11:44:25 +01:00
2026-11-16 23:01:56 -05:00
2026-11-17 12:44:52 +00:00
2026-11-14 00:15:29 +00:00
2026-11-17 12:54:32 +00:00
2026-11-16 22:22:29 -05:00
2026-11-13 03:13:53 +00:00
2026-11-15 22:11:54 +01:00
2026-11-16 21:30:13 -05:00
2026-11-17 14:28:37 +00:00
2026-11-16 21:32:22 -05:00
2026-11-16 21:38:30 +00:00
2026-11-14 00:18:37 +00:00
2026-11-16 03:03:33 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 21:35:49 -05:00
2026-11-14 00:15:29 +00:00
2026-11-16 00:00:28 +01:00
2026-11-17 12:44:52 +00:00
2026-11-16 13:45:33 +01:00
2026-11-16 21:37:38 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 19:25:08 -05:00
2026-11-17 12:44:52 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 00:49:25 +01:00
2026-11-16 03:03:33 +00:00
2026-11-16 06:38:32 -05:00
2026-11-16 09:55:17 -05:00
2026-11-13 04:34:44 -05:00
2026-11-13 04:13:55 -05:00
2026-11-17 12:54:32 +00:00
2026-11-17 12:44:52 +00:00
2026-11-17 14:28:37 +00:00
2026-11-16 21:20:27 +00:00
2026-11-16 11:30:54 +01:00
2026-11-15 13:38:46 +00:00
2026-11-16 21:34:35 -05:00
2026-11-17 08:54:37 +00:00
2026-11-16 21:32:18 -05:00
2026-11-16 04:01:03 +01:00
2026-11-16 16:48:00 +00:00
2026-11-17 13:06:43 +00:00
2026-11-17 12:44:52 +00:00
2026-11-14 02:51:47 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 21:37:09 -05:00
2026-11-16 21:37:38 +00:00
2026-11-17 14:46:03 +00:00
2026-11-17 15:26:10 +00:00
2026-11-17 12:54:32 +00:00
2026-11-17 08:54:37 +00:00
2026-11-17 15:20:27 +00:00
2026-11-17 15:26:10 +00:00
2026-11-17 08:27:05 +00:00
2026-11-17 15:26:10 +00:00
2026-11-17 21:04:10 +01:00
2026-11-17 14:28:37 +00:00
2026-11-15 15:29:04 -05:00
2026-11-16 01:58:30 +00:00
2026-11-14 02:35:35 +00:00
2026-11-17 12:44:52 +00:00
2026-11-14 00:15:29 +00:00
2026-11-14 00:35:31 +00:00
2026-11-16 03:03:33 +00:00
2026-11-14 00:15:29 +00:00
2026-11-16 13:22:31 +00:00
2026-11-17 12:44:52 +00:00
2026-11-16 03:49:11 +00:00
2026-11-16 21:36:11 -05:00
2026-11-16 23:06:56 -05:00
2026-11-16 01:52:09 +00:00
2026-11-16 23:06:56 -05:00
2026-11-16 12:25:00 +01:00