8000
Skip to content

Pass sameZoneAs to sandbox constructor to make GCs cheaper #2237

@the8472

Description

@the8472

According to about:memory greasemonkey sandboxes all seem to live within the same zone (in process/remote tab child global, depending on e10s).

As I understand it this has a negative impact on GC performance since allocation by greasemonkey scripts triggers GCs in this fairly large zone instead of GCing in a window-specific zone.

This can be mitigated by using the sameZoneAs option.

The addon SDK does this for its sandboxes, so it's probably best practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0