Forget already-parsed SWF bytes

RESOLVED INVALID

Status

defect
RESOLVED INVALID
5 years ago
3 years ago

People

(Reporter: till, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [parser][memory usage])

(Reporter)

Description

5 years ago
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.
(Reporter)

Comment 1

5 years ago
Marking as invalid in favor of bug 1035170, which is the much better solution for this.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.