Pulse/internal/mdadm
rcourtman 5d7bb8d461 perf: Pre-compile regexes in mdadm package
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
2025-12-02 15:11:04 +00:00
..
mdadm.go perf: Pre-compile regexes in mdadm package 2025-12-02 15:11:04 +00:00
mdadm_test.go Add unit tests for mdadm parseDetail function 2025-11-30 16:42:12 +00:00