Skip to content
Open
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
4 changes: 4 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

## 2024-03-08 - PDF Search & Rendering Performance
**Learning:** The `renderPDFs` filter loop was running `toLowerCase()` on multiple fields for every PDF, every keystroke, and constructing new `Date` objects in `createPDFCard` during DOM generation. This caused significant lag during searching and initial rendering, especially as the database grows.
**Action:** Implement a `prepareSearchIndex` pass immediately after `loadPDFDatabase` to pre-calculate `_searchStr` and `_formattedDate` once. This eliminates string allocations in the hot search loop and date formatting during DOM rendering.
Loading