mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 02:40:56 +00:00
This commit optimizes the repository validation script (`scripts/ci_validate_repo.py`) by consolidating multiple file-traversal passes into a single efficient pass. Key improvements: - Combined size and NUL byte checks into a single `validate_files` function. - Implemented early size checks using `p.stat().st_size` to avoid reading invalid files. - Replaced full-file reading (`read_bytes`) with chunked binary reading (64KB) to ensure a constant memory footprint and enable early exit on NUL byte detection. - Reduced syscall overhead and I/O by minimizing redundant traversals. Ref: Bolt Philosophy - "Speed is a feature", "Measure first, optimize second". |
||
|---|---|---|
| .. | ||
| bolt.md | ||
| deploy.yml | ||