Closed Bug 1031912 Opened 10 years ago Closed 10 years ago

Forget already-parsed SWF bytes

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: till, Unassigned)

References

Details

(Whiteboard: [parser][memory usage])

Currently, we always append bytes to the SWF buffer when they're loaded instead of forgetting the ones we already parsed. Ideally, instead of resizing the buffer when it becomes to small, we'd first check if moving all unread bytes to the buffer's beginning would mean that enough space would be left at the end again.

In a certain game I'm profiling, we're creating a 16MB parsing buffer, where probably something like 512kb or even less would suffice.
Marking as invalid in favor of bug 1035170, which is the much better solution for this.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.