Skip to content

Stores hold onto unnecessary memory indefinitely in some cases #1559

@fabiospampinato

Description

@fabiospampinato

Describe the bug

Some internal metadata nodes are never cleared up, so they keep consuming memory indefinitely, even if nobody needs them anymore.

Your Example Website or App

https://playground.solidjs.com/anonymous/b8626377-1d8a-4535-9aed-3bdb438b4e34

Steps to Reproduce the Bug or Issue

  1. Uncomment only the Solid code.
  2. Take a heap snapshot
  3. Uncomment only the equivalent Oby code.
  4. Take a heap snapshot
  5. Notice how the Solid code is consuming way more memory, even though the user is basically doing the same thing in both.

To magnify the effect the counter can be increased.

Expected behavior

Solid's stores should clean up after themselves, and shouldn't consume significantly more memory than Oby's stores.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome@latest
  • Version: 1.6 (I think? The one in the playground)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions