Skip to content

Memory management #5

Closed
Closed

Description

@koops

Hi, this project looks exciting. I'm a long-time therubyracer user and I use it for long-running contexts. Memory management is an open issue with trr, see issue.

So I'd like to know, is there any reason to believe that mini_racer might do better than trr at conserving memory?

Activity

  1. SamSaffron commented on May 19, 2016

    @SamSaffron
    Collaborator

    Yes mini_racer is designed to hold almost no refs between VMs. The only refs allowed are an array of procs it is allowed to call.

    By avoiding transparently holding references and weak refs to objects between VMS (everything is moved by copy) risk of memory issues goes way down.

  2. koops commented on May 19, 2016

    @koops
    Author

    Thanks, that's good news. One other, related thing: do you plan on supposing dispose on a context?

  3. SamSaffron commented on May 19, 2016

    @SamSaffron
    Collaborator

    Yes going to add a mechanism to run a context in a block and dispose of all
    v8 resources once block is over "burning" the context,

    Also maybe simply add a reset method to clear

    On Friday, 20 May 2016, koops notifications@github.com wrote:

    Thanks, that's good news. One other, related thing: do you plan on
    supposing dispose on a context?

    —
    You are receiving this because you modified the open/close state.
    Reply to this email directly or view it on GitHub
    #5 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions