Skip to content
Closed
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
5 changes: 5 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 2025-05-15 - Vectorized Preprocessing and Optimized Training Loops in runica.py

**Learning:** Moving `np.errstate` context managers outside of tight iterative loops and replacing internal helper wrappers (like `_matmul`) with native operators (like `@`) eliminates significant function call and context management overhead. Additionally, using NumPy broadcasting instead of explicit matrix multiplication with ones (e.g., `+ bias` instead of `_matmul(bias, onesrow)`) avoids unnecessary (N \times M)$ operations.

**Action:** Always look for repeated context management or small helper calls inside loops. Use broadcasting for bias/offset addition instead of matrix products.
Loading
Loading