Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Pass sameZoneAs to sandbox constructor to make GCs cheaper #325

@the8472

Description

@the8472

According to about:memory µMatrix 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 allocations by scripts loaded into those sandboxes triggers GCs in this fairly large zone instead of GCing in a window-specific zone. I would guess that the the cross-zone references are also be more expensive.

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions