You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dcc24cf
Browse filesBrowse the repository at this point in the historyBrowse files
Snappier search: facets only for a new query, prefetched pages, a progress bar (#5)
Next was slow because every page asked cvcpkg.org for facets, which
makes it count every match: 1.2 s for page 2 of everything and 2.4 s
for page 2 of zlib, against 0.2 s and 0.4 s without. Now only a new
query or filter asks for facets (the honest package count); paging
reuses that count. After showing a page the search module prefetches
the next one in the background and keeps the page it left, so Next and
Prev are answered with no request.
Requests wait in 50 ms slices (http-get-async and await with a
timeout), and between slices the module draws an indeterminate progress
bar at the bottom of its view; the package module does too. lib.ari
gains search-key, body-text and progress-bar, and search-query takes
facets.
The fixture logs its requests (/_requests) and answers a slow: name
after a second. Module tests show a new query asks for facets and
paging doesn't, Next and Prev make no request, and the bar draws during
a slow request and clears after; with prefetch disabled they fail.
0 commit comments