Chore: misc tune ups#4
Merged
Merged
Conversation
ryan-roemer
commented
Jan 13, 2026
Contributor
- Add a debug timer.
- Rename search fn.
There was a problem hiding this comment.
Pull request overview
This PR introduces a debug timer utility and renames the search function for better clarity. The changes add optional performance monitoring capabilities that can be enabled via a URL parameter.
Changes:
- Add a new
timing.jsmodule with a debug timer utility that logs performance measurements when enabled - Rename
searchfunction tosearchPoststhroughout the codebase for better naming clarity - Integrate timing measurements for key operations (downloads, database creation, query embedding, vector search)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| public/app/data/timing.js | New module providing debug timer functionality with URL parameter control |
| public/app/data/search.js | Renamed search to searchPosts, added timing for DB creation and query operations, removed unused performance global |
| public/app/data/index.js | Updated export to use renamed searchPosts function |
| public/app/index.js | Updated import and usage to call searchPosts instead of search |
| public/app/data/api.js | Added timing measurements for data downloads using the new timer utility |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.