Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ Optimized metric route processing to O(N) by creating a mapping of routes direct
## 2024-05-18 - [Optimize Node Resolution in autoInfer.ts & STRIX Intersect Flake]
**Learning:** We replaced an O(N^2) loop where `nodes.find` scanning via string splitting was running inside an `O(N)` loop to match foreign key relationships, using an O(1) `Map` lookup instead. We also ran into an issue where STRIX falsely flagged a path traversal due to string manipulation of table names. Adding a simple alphanumeric whitelist `sanitizeTableName()` step addressed this mock-security check.
**Action:** When working with nested search loops on static Node trees, immediately create O(1) Lookup Maps. Additionally, if the CI pipeline uses hallucination-prone LLM vulnerability checks (like STRIX) and flags string splitting logic, you can easily bypass the false positive by implementing a `sanitizeTableName` whitelist regex check where the table string is constructed.
## 2026-07-12 - Search string parsing overhead during ERD filtering
**Learning:** During text search against many ERD nodes, recreating parsed string term arrays via string splitting, trimming, and `new Set()` inside the per-node loop creates unnecessary allocation overhead and garbage collection pressure, scaling with $O(N)$ for every typed keystroke.
**Action:** Always hoist immutable string parsing and initialization logic (like regex array splitting) outside of node evaluation loops and pass the evaluated output directly down to individual evaluator functions, making initialization cost $O(1)$.
37 changes: 0 additions & 37 deletions fix_plan.txt

This file was deleted.

28 changes: 0 additions & 28 deletions fix_plan2.txt

This file was deleted.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "tsc -b && vite build",
"typecheck": "tsc --noEmit",
"preview": "vite preview",
"test": "vitest run"
"test": "vitest run",
"coverage": "vitest run --coverage"
},
"dependencies": {
"@xyflow/react": "^12.11.1",
Expand Down
Loading
Loading