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

ConceptSchemeSelection: Computed properties cost too much and are updated way too often #633

Closed
stefandesu opened this issue Nov 5, 2021 · 0 comments
Milestone

Comments

@stefandesu
Copy link
Member

While further improving Cocoda's performance, I have noticed that the application spends a lot of computing time with updating computed properties in the ConceptSchemeSelection component. Specifically, these four computed properties take a lot of computing time:

  • filteredSchemes
  • registryFilterOptions
  • languageFilterOptions
  • typeFilterOptions

All of these filter and iterate over all schemes and are updated every time there is ANY change on a scheme, which apparently happens extremely often, even during concept updates.

To mitigate this, it might be possible to use watchers instead and compute these properties in debounced methods. They can/should also be optimized in other ways as well.

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

No branches or pull requests

1 participant