feat(core): implement Plan #62 efficiency, deduplication, caching & hook optimizations
This commit is contained in:
1 parent
d4b7502501
commit
9b587d6351
20 files changed
+176
-195
No files matched your search
@@ -10,7 +10,7 @@ import json
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from hyperstitionstud_io.config import load_workspace_config
|
||||
from hyperstitionstud_io.config import load_json_cached, load_workspace_config
|
||||
from hyperstitionstud_io.glossary import sha256_file
|
||||
from hyperstitionstud_io.publishing.fonts import resolve_font_path
|
||||
|
||||
@@ -55,7 +55,7 @@ def run_diagnostics(workspace_root: str | Path | None = None) -> dict[str, Any]:
|
||||
}
|
||||
|
||||
fb_path = Path(__file__).resolve().parent.parent / "phonetics" / "cmudict_fallback.json"
|
||||
fb_count = len(json.loads(fb_path.read_text(encoding="utf-8"))) if fb_path.is_file() else 0
|
||||
fb_count = len(load_json_cached(fb_path, copy_result=False)) if fb_path.is_file() else 0
|
||||
|
||||
lr_path = cfg.core_dir / "deploy" / "logrotate.d" / "hyperstition-sqlite-meta"
|
||||
lr_txt = lr_path.read_text(encoding="utf-8") if lr_path.is_file() else ""
|
||||
|
||||
Reference in new issue
Block a user