perf: speed up web startup and add progress - #125
Merged
Conversation
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #125 +/- ##
==========================================
+ Coverage 94.53% 95.31% +0.78%
==========================================
Files 15 18 +3
Lines 969 1173 +204
==========================================
+ Hits 916 1118 +202
- Misses 53 55 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
njzjz
marked this pull request as ready for review
August 16, 2026 15:15
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
for more information, see https://pre-commit.ci
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
for more information, see https://pre-commit.ci
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
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.
Summary
sqlite3Pyodide packageWhy
The web app was paying most of its cold-start cost before the actual literature lookup: Pyodide was loaded once in the page and again in the Worker, then the Worker loaded an unused
sqlite3package. The query code itself is already asynchronous/concurrent for DOI sources, so startup is the largest straightforward optimization.Progress stages
The Worker now reports runtime loading, package installer loading,
wenxianinstallation, query preparation, literature-source lookup, and completion. The page renders these as an accessible progress bar rather than a staticFetching...message.Web validation
The required test workflow now has a dedicated
Web testsjob. It runs nine Node-based browser/worker tests underc8, uploadscoverage/lcov.infoto Codecov with thewebflag, and then launches a real headless Chromium against a local copy ofdocs/.Current web coverage:
wenxian.js: 100%webworker.js: 100%pyworker.js: 95.55%The Chromium smoke test performs a real DOI query for
10.1063/5.0155600, including Pyodide initialization, PyPI package loading, progress rendering, literature lookup, and BibTeX output validation. Python coverage is now explicitly uploaded with the separatepythonflag.Agent: ChatGPT
Model: GPT-5.6 Sol