Closed Bug 1112363 Opened 10 years ago Closed 9 years ago

Support incremental SWF parsing based on time budgets

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: till, Unassigned)

References

Details

In situations where our initial SWF parsing is slower than the rate we load a file at, parsing can cause jank. To remove/reduce that, we can introduce a budget (say, 8ms) for parsing. We check that periodically and return if it's used up. It'd be important to include zip decompression in this, and that complicates things a bit: it's conceivable that we might end up spending the entirety of the budget in decompression multiple directly consecutive times. In that case, we wouldn't be able to make any loading progress at all, which would be silly. We could get around that by only allowing budget/2 (or some other factor) for decompression, so that we're guaranteed to get some parsing done, too.
No longer blocks: shumway-jw2
Blocks: shumway-later
No longer blocks: shumway-m4
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.