- Keep PDF CPU work off the Worker event loop: page-screen tiling and PNG encoding run in the PyMuPDF child, the visual asset probe skips table and drawing search once a page already has assets, and PyMuPDF children run at niceness +10.
- Log event-loop stalls (
worker.event_loop_blocked), the worst gevent delay in worker.runtime_pressure (max_gevent_delay_ms), and PyMuPDF child CPU time (child_cpu_ms) as WARNING logs.
- Screen page images only for slide decks and PDFs without a text layer; text PDFs use keyword TOC candidates.
Source: 78dd49a
PR: #606
PR: #605