-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DartVM async*/await for are slow #38176
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
Comments
/cc @mraleph |
Duplicate of #29189 |
Thank you for the report. We are aware that there is a performance gap between If you have an example of a real world code that is significantly impacted by this gap please let us know - it would help us to prioritise fixing this. |
Thank for pointing me to #29189 I didn't manage to find it before reporting the issue.
Acutally I submitted this issue because I was performing a performance test on a real application and was triing to improve it. In a nutshell the application consume a gRPC streams of events, applies some filter/map on them and writes the result to other gRPC output streams. After some changes to avoid |
@a14n Do you have some more complete example which includes some gRPC / server code etc? That would be very helpful. |
/cc @mkustermann for planning |
It's really hard to extract a simple repro :-/ |
I wrote several versions of the same code:
I tested those methods on a stream of 1_000_000 integers. The results are almost the same on every runs (DartVM 2.4.1 and 2.5.0-dev.2.1):
It looks like some improvment could be done here to have better performance with
await for
andasync*
The text was updated successfully, but these errors were encountered: