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

Compiled version of DelayedCall #12143

Open
itamarst opened this issue Apr 29, 2024 · 0 comments
Open

Compiled version of DelayedCall #12143

itamarst opened this issue Apr 29, 2024 · 0 comments

Comments

@itamarst
Copy link
Contributor

I ran an experiment where I made a Cython version of DelayedCall, with reset() being compiled method. The result was a slightly faster HTTP server benchmark (it creates a timeout per request, with usage of reset()). This suggests there is room for performance improvements here.

I suspect there's rather more one could do, e.g. the base reactor has a sorted list of DelayedCall which relies on doing Python based __gt__/__lt__ comparisons between objects, and... that could all be done internally with a faster data structure that doesn't call into Python for comparisons. But that may be a larger project.

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