Skip to content

Pool objects owned by Fiber #3

@AdamRamberg

Description

@AdamRamberg

This feature should be investigated and perf tested before being merged to main.

We are currently not pooling any objects, which we might want to do. The reason why I write might, is that it make sense for components that are mounted / unmounted often, but not for components that are only mounted once. Objects that could be pooled are:

  • Children
  • FiberNodes
  • Effects
  • Signals
  • Built in components
  • Refs

The idea is that the virtual node that defines all of the above (via for example F.Children) in its Render call also owns the object, meaning that when it is unmounted all object that it owns are released. A pre-requisite for this is that Signals and Refs are created by Fiber (via F).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions