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

Add state machine based path matching with benchmarks #3252

Conversation

promisingcoder
Copy link

- Implement zero-allocation state machine router
- Add comprehensive benchmarks showing performance improvements:
  * Regular path matching: 135x faster
  * Single path matching: 12x faster
  * Non-matching path: 13.5x faster
  * High concurrency: 150x faster
- Update build configuration for benchmarks
- Configure JMH for performance testing
Copy link

algora-pbc bot commented Dec 12, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

@987Nabil
Copy link
Contributor

@promisingcoder First of all, pinging multiple ppl to review while you PR is not building, is not nice.
Besides that, I already figured out that this idea is theoretically not possible implement. State machine will always be slower for finding routes.

@987Nabil 987Nabil closed this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants