mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-21 20:53:52 +08:00
valid_type() still ran nine uncompiled re.match() calls for every pin line, cross-checking the peripheral number in a pin's type against the one in its label. Compile them once as class members. Processing all 443 ChibiOS hwdefs goes from 0.35s to 0.32s. The parse state of all 490 boards is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>