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

Speed up routes and inline it in code ring handler #693

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

bsless
Copy link
Contributor

@bsless bsless commented Aug 25, 2024

Fixes #692

(single-arity request))
([request respond raise]
(multi-arity request respond raise))))))

(defn routes
Copy link
Member

Choose a reason for hiding this comment

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

I think this could be simplified a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In what way?

Copy link
Member

Choose a reason for hiding this comment

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

comp-handlers has 2 arities, routes 4. routes is not needed at request-time (thanks for the fix!) so the creation speed is not critical. dropped extra arities here: #696

@ikitommi ikitommi merged commit 517ae8f into metosin:master Aug 27, 2024
7 checks passed
@ikitommi
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Async arity ring handler is slower than sync arity
2 participants