Skip to content

Boa's start-up time getting hit with GC Allocation #3896

@jasonwilliams

Description

@jasonwilliams

Boa spends a large proportion of time in realm creation comparitive to actually running the code.
It seems a lot of this is due to building out the global objects on the heap and storing them causing the GC to do multiple collections before the program has even started.

We may wish to look at some sort of snapshot for built-ins or staticlly storing them somewhere (switch of GC for built-ins)

You can load the below profiler into ui.perfetto.dev or chrome developer tools and take a look.
image

chrome_profiler.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BugSomething isn't workingA-PerformancePerformance related changes and issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions