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
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2025-05-15 - [Broadcasting and Context Manager Optimization in runica]
**Learning:** Manual expansion of vectors for addition (e.g., `bias @ ones(1, M)`) is significantly slower (~3x) than using NumPy broadcasting (`+ bias`). Additionally, wrapping tight loops in context managers like `np.errstate` is more efficient than calling wrappers that use them internally.
**Action:** Always prefer broadcasting over manual matrix-based expansion and minimize context manager entry/exit in high-frequency loops.
Loading
Loading