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

perf: undo ASGI cythonization #1860

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

vytas7
Copy link
Member

@vytas7 vytas7 commented Feb 10, 2021

It is sad having to resort to this, but it seems that cythonized coroutines, although reasonably sped up as if added directly to an async loop, suffer a severe performance hit when awaited from a Python coroutine (and that is what virtually all ASGI app servers out there seem to do). So much that performance deteriorates to worse than pure Python 😬

Cython 3.0 alpha shows slighty better results, but still not even demonstrably faster than the pure Python version.

@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #1860 (13b7521) into master (a5e72b2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1860   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines         5218      5218           
  Branches       842       842           
=========================================
  Hits          5218      5218           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5e72b2...3ce8517. Read the comment docs.

@kgriffs kgriffs merged commit 2854011 into falconry:master Feb 12, 2021
@vytas7 vytas7 mentioned this pull request Apr 3, 2021
14 tasks
@vytas7 vytas7 mentioned this pull request May 22, 2022
12 tasks
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.

3 participants