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

Do not match keyexprs for local faces #1786

Merged
merged 8 commits into from
Feb 21, 2025
Merged

Do not match keyexprs for local faces #1786

merged 8 commits into from
Feb 21, 2025

Conversation

Mallets
Copy link
Member

@Mallets Mallets commented Feb 20, 2025

Remove unnecessary matches in decl_key for local faces.

This PR brings significant improvement in CPU usage and startup time.

E.g., test with 100 peers, where each peer declares:

  • 100 subscribers
  • 100 publishers
  • 100 queryables
  • 100 queriers
  • 12 tokens

On an AMD Ryzen 7 5800X with 32GB of RAM, the total startup time of processes and declarations exchange is:

main:        real	1m13.883s
this PR:     real	0m24.480s

Copy link

PR missing one of the required labels: {'enhancement', 'dependencies', 'breaking-change', 'documentation', 'internal', 'bug', 'new feature'}

@Mallets Mallets added enhancement Existing things could work better internal Changes not included in the changelog labels Feb 20, 2025
@Mallets Mallets marked this pull request as draft February 20, 2025 13:31
@Mallets Mallets marked this pull request as ready for review February 21, 2025 14:51
@OlivierHecart OlivierHecart merged commit faaf78c into main Feb 21, 2025
26 checks passed
@OlivierHecart OlivierHecart deleted the fix/matches branch February 21, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Existing things could work better internal Changes not included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants