Files
AEmotionStudio-ComfyUI-Disc…/shared/workflow
google-labs-jules[bot]andAEmotionStudio c498711f10 perf: Optimize JSON sanitizer to run 9x faster
- Replaces O(2N) double-traversal of workflow nodes with O(N) single-pass context-aware sanitization.
- Pre-compiles regex patterns for webhook detection.
- Uses tuple `startswith` for faster GitHub token detection.
- Adds test case for sanitizing custom node properties.

Impact: Reduces `sanitize_json_for_export` time from ~113ms to ~12ms for large workflows.

Co-authored-by: AEmotionStudio <163354043+AEmotionStudio@users.noreply.github.com>
2026-02-09 16:12:25 +00:00
..