Skip to content

Performance improvements#745

Open
justinswork wants to merge 2 commits intodotnet:masterfrom
justinswork:perf-improvements
Open

Performance improvements#745
justinswork wants to merge 2 commits intodotnet:masterfrom
justinswork:perf-improvements

Conversation

@justinswork
Copy link
Copy Markdown
Contributor

Had to dig in and see if there was any low-hanging fruit that could dramatically improve performance, as it seems to be quite slow when loading hundreds of RESX files.

Comment thread src/ResXManager.View/Visuals/ResourceViewModel.cs Outdated
Comment thread src/ResXManager.Model/ResourceEntity.cs Outdated
Comment thread src/ResXManager.Model/ProjectFile.cs Outdated
@justinswork justinswork force-pushed the perf-improvements branch 2 times, most recently from 76ed303 to 7eb220a Compare April 15, 2026 17:30
public bool IsLoading { get; private set; }

// Do not use CollectionViewSource in XAML, has huge performance impact when there are many items in the list.
public CollectionView GroupedResourceTableEntries
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This property is only used by binding, and no one ever raises a property change event for this, so it is accessed only once, so this "optimization" has absolutely no effect

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right. The comment above the property is what caught my eye, and I assumed this would still be considered an improvement, as the collection view itself only needs to be created once, even if it was accessed multiple times, but you're right, it doesn't make any impact right now. I can pull out this commit

@justinswork justinswork force-pushed the perf-improvements branch from 7eb220a to 7018864 Compare May 8, 2026 18:04
@justinswork justinswork force-pushed the perf-improvements branch from 7018864 to 1d55d7a Compare May 8, 2026 18:06
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.

2 participants