Peter Barker and Claude Opus 5
12cf96348b
hwdef: test alternative-function labels with one startswith
...
Three places looped over af_labels asking whether a label named an
alternative function, and none of them used the entry which matched.
str.startswith() takes a tuple of prefixes and does the whole test at
once, so ask it that way instead; two of the three are in
get_alt_function(), which is called for every pin line.
Processing all 443 ChibiOS hwdefs goes from 0.335s to 0.325s. The
parse state of all 490 boards is unchanged.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 19:24:04 +10:00
..
2026-08-05 11:54:12 +10:00
2026-08-04 11:59:14 +10:00
2026-07-10 10:14:26 +10:00
2026-05-31 12:12:03 +10:00
2026-05-07 09:33:15 +10:00
2026-06-04 10:38:56 +10:00
2026-08-05 11:54:12 +10:00
2026-08-04 11:59:14 +10:00
2026-07-29 18:18:35 +10:00
2026-08-05 17:54:37 +10:00
2026-08-04 11:59:14 +10:00
2026-07-21 10:54:07 +10:00
2026-08-04 10:11:03 +09:00
2026-08-01 14:12:12 +10:00
2026-08-07 07:04:26 +09:00
2026-04-28 10:36:41 +10:00
2026-07-31 09:16:30 +10:00
2026-06-17 17:21:49 +10:00
2026-07-29 18:18:35 +10:00
2026-08-04 11:59:14 +10:00
2026-07-30 23:50:11 +10:00
2026-05-13 18:29:03 +10:00
2026-08-07 09:29:29 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-08-05 17:53:47 +10:00
2026-06-05 21:29:47 +10:00
2026-07-29 18:18:35 +10:00
2026-04-21 11:31:10 +10:00
2026-07-22 18:57:51 +10:00
2026-08-05 11:55:24 +10:00
2026-07-29 18:18:35 +10:00
2026-08-04 11:59:14 +10:00
2026-08-07 19:24:04 +10:00
2026-08-07 19:24:04 +10:00
2026-08-07 19:24:04 +10:00
2026-08-07 19:24:04 +10:00
2026-08-07 19:24:04 +10:00
2026-08-07 19:24:04 +10:00
2026-07-29 18:18:35 +10:00
2026-04-22 17:28:36 +10:00
2026-08-05 18:34:58 +10:00
2026-04-28 11:02:00 +10:00
2026-05-26 10:32:19 +10:00
2026-07-28 13:48:28 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:19:49 +10:00
2026-08-04 10:11:03 +09:00
2026-07-07 06:07:12 -04:00
2026-07-30 23:50:11 +10:00
2026-07-29 17:16:29 +10:00
2026-08-03 11:25:00 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-05-31 12:11:32 +10:00
2026-07-29 17:16:29 +10:00
2026-08-04 10:15:20 +10:00
2026-05-18 20:58:47 -05:00
2026-07-07 20:19:03 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-07-29 17:16:29 +10:00
2026-08-03 16:59:03 +01:00
2026-08-04 11:59:14 +10:00
2026-07-05 14:03:37 +10:00
2026-07-30 23:49:59 +10:00
2026-04-25 18:10:21 +10:00
2026-07-28 13:48:28 +10:00
2026-08-06 09:05:41 +10:00
2026-07-15 12:54:56 +10:00
2026-07-29 18:18:35 +10:00
2026-07-29 18:18:35 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-04-22 17:34:28 +10:00
2026-07-28 11:03:50 +01:00
2026-04-23 11:17:22 +09:00
2026-06-02 10:33:11 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-08-06 16:40:54 +10:00
2026-08-04 11:59:14 +10:00