mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 23:41:48 +01:00
Move regex compilation from function bodies to package-level variables to avoid recompilation on each RAID array check during polling cycles. Affected regexes: - mdDeviceRe: Matches md device names in /proc/mdstat - slotRe: Matches device slot lines in mdadm --detail output - speedRe: Extracts rebuild speed from /proc/mdstat