- Refactored scripts/ci_validate_repo.py to use a single-pass validation approach.
- Implemented early size check using stat() to avoid processing huge files.
- Added chunked binary reading (64KB chunks) for NUL byte detection to minimize memory overhead.
- Combined size and NUL byte checks into a unified validate_files() function.
Expected impact: Significant reduction in memory usage for large files and slightly faster execution in CI environments.