mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
GET /api/zim went through Zims.get_all, which opened every Zim's Archive in the API process, and then Zim.__json__ opened each one again for its metadata. python-libzim holds the GIL and a cold open of a large Zim takes seconds, so loading the Zims page stalled that API worker for every other request (27.8 s cold against 0.75 s warm for 44 Zims). #928 moved estimates and searches to the worker process; the list now uses the same worker for metadata, and a Zim the worker cannot read is left out as before. count_tagged_zim_entries shares the new readable_zims helper. Zims.get_all had no other callers and is removed. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archive | ||
| docs | ||
| flasher | ||
| inventory | ||
| map | ||
| repos | ||
| videos | ||
| zim | ||
| __init__.py | ||