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

Stop iterating over all resources for finding matching identifiers #1411

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

pderaaij
Copy link
Collaborator

This fixes #1410 and will improve on the symptoms mentioned by @theAkito in #1375.

This commit changes the behaviour of FoamWorkspace.getIdentifier. Instead of iterating over all resources it will reap the benefits of the TrieMap. I've changed the algorithm to take the basename as identifier. This is then used to list all matching resources for that identifier. Internally, this uses the reversed TrieMap identifier. Optimising the retrieval of any matching resources of the given identifier.

This removes the cartesian product causing the problems in #1410.

@riccardoferretti Please check and verify.

@riccardoferretti riccardoferretti merged commit 6a4bd34 into foambubble:master Nov 12, 2024
3 checks passed
@pderaaij pderaaij deleted the performance-upgrade branch November 13, 2024 10:15
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.

0.26.2 hanging on link completion
2 participants