Skip to content

perf: better handling of manage fields clusters when dealing w/ shit-ton of definitions - #303

Open
phndiaye wants to merge 3 commits into
masterfrom
pn/manage-fields-windowed-rendering
Open

phndiaye wants to merge 3 commits into
masterfrom
pn/manage-fields-windowed-rendering

Conversation

@phndiaye

@phndiaye phndiaye commented Dec 3, 2026

Copy link
Copy Markdown
Member

What does this PR do?

perf: better handling of manage fields clusters when dealing w/ shit-ton of definitions

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Properly labeled

Additional Notes

@phndiaye phndiaye self-assigned this Dec 3, 2026
@phndiaye
phndiaye requested a review from a team as a code owner December 3, 2026 08:06
@phndiaye
phndiaye requested review from OwenCoogan, edouardmisset and olxmpe and removed request for a team December 3, 2026 08:06
@linear-code

linear-code Bot commented Dec 3, 2026

Copy link
Copy Markdown

VEL-8848

@phndiaye
phndiaye force-pushed the pn/manage-fields-windowed-rendering branch from 7cfdb11 to 166a68e Compare December 3, 2026 08:14

@JulienVannier66 JulienVannier66 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}));
}

@cached

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not know this one, good to know ^^

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's one of the decorators we gained w/ the upgrade. https://api.emberjs.com/ember/6.12/functions/@glimmer%2Ftracking/cached/

When dealing with large sets of data that can expensive to recompute, it ensures the getter is evaluated is only done when the watched properties's cache is invalidated, and not every time it's accessed :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To use sparingly if i remember the docs 😉

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants