You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ec4ca4d
Browse filesBrowse the repository at this point in the historyBrowse files
**Learning:** Checking for printable characters via `not value.isprintable()` is ~15-18x faster than manual character-by-character iteration with `any(not c.isprintable() for c in value)` in Python.
3
+
**Action:** Always prefer the built-in `str.isprintable()` method over manual loops or generators for character validation.
4
+
5
+
## 2025-07-17 - Grouped I/O in scripts/init.py
6
+
**Learning:** Performing multiple consecutive file reads/writes on the same files (`pyproject.toml`, `mkdocs.yml`) causes redundant disk I/O overhead.
7
+
**Action:** Group file modifications by file path to perform exactly one read and one write operation per file.
0 commit comments