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

no wait bytes with asyncio.wait_for for each frame #157

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Conversation

mosquito
Copy link
Owner

fixes #156

setup.cfg Show resolved Hide resolved
@@ -137,10 +137,8 @@ async def close(
if self.is_closed:
return None

await asyncio.wait_for(
self.loop.create_task(self.__closer(exc)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Here should not have been task and await asyncio.wait_for(self.__closer(exc), timeout) was enough, am I right?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Now it's doesn't matter

aiormq/base.py Show resolved Hide resolved
@mosquito
Copy link
Owner Author

@dgoeries could you make sure that the code from this branch fixes this monstrous performance drop?

@dgoeries
Copy link

@mosquito this fixes most of it thanks!.

With this PR i have around 5.9-6kHz message consumption.
With version 3.3.1 i have 6.4kHz.

@dgoeries
Copy link

I ran again. Now i barely see a difference, must have had a bad period when comparing.

@dgoeries
Copy link

Yeah, it seems that the 3.3.1 version is slightly more performing (~5%) in message consumption.

@mosquito mosquito merged commit d12d705 into master Dec 13, 2022
@mosquito mosquito deleted the hotfix/issue-156 branch December 13, 2022 16:02
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.

Performance degradation from 4.3.0 -> HEAD
3 participants