Commit 0273f80
fix(open): skip the cold-open pre-render until the worker pool is ready (#302)
The page-1 pre-render fired on every file-association launch; with
the PDFium worker pool still spawning at boot it fell back to an
in-process parse in the main process, concurrent with PDF.js parsing
the same bytes - on large documents the doubled peak takes the load
down, so double-clicked large files failed while File > Open (warm
pool) worked. Gate the pre-render on a new worker_pool_ready command;
the normal render path is unaffected.
Co-authored-by: Maarten Vroegindeweij <30430941+DutchSailor@users.noreply.github.com>1 parent 335f9dc commit 0273f80
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
243 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1577 | 1589 | | |
1578 | 1590 | | |
1579 | 1591 | | |
| |||
2562 | 2574 | | |
2563 | 2575 | | |
2564 | 2576 | | |
| 2577 | + | |
2565 | 2578 | | |
2566 | 2579 | | |
2567 | 2580 | | |
| |||
0 commit comments