Skip to content

Conversation

@G0-G4
Copy link

@G0-G4 G0-G4 commented Apr 11, 2025

We observed a significant performance degradation when switching to Python 3.12, where processing a 20MB file in the instream function slowed down from 300ms to 5s.

The issue was caused by missing calls to the drain() function, which should be called after write operations in asyncio streams. After adding the proper drain() calls, the performance issue was resolved.

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.

1 participant