Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree widget: Increase performance consistency when creating filtering paths #1130

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

JonasDov
Copy link
Contributor

No description provided.

@JonasDov JonasDov requested review from a team as code owners December 20, 2024 11:39
@JonasDov JonasDov merged commit f6b3a56 into master Dec 20, 2024
14 checks passed
@JonasDov JonasDov deleted the JonasD/filtering-main-thread-blocking branch December 20, 2024 13:47
Comment on lines +671 to +674
// We dont want to modify the original path, we create a copy that we can modify
const newModelPath = [...modelPath];
newModelPath.pop(); // model is already included in the element hierarchy path
const path = [...newModelPath, ...elementHierarchyPath];
Copy link
Member

Choose a reason for hiding this comment

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

We could avoid one additional copy on modelPath by doing something like this:

const path = modelPath.slice(0, modelPath.length - 1);
path.push(elementHierarchyPath);

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.

Filtered models tree initial view causes main thread blocking
3 participants