Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Feb 15, 2021

I just heard that there is a new, faster, lower cost Channel class for doing the producer-consumer logic we want. Therefore, no need to include the TPL because it is much heavier, and we didn't use other feature of TPL.

Channel class use ValueTask instead of Task, IAsyncEnumerable instead of creating another IList when reading them all.
Although we should only have a few items in the queue (generally less than 20), reading is quite frequently.

It won't be a large difference, because we didn't include async read & write, but more than nothing.

@taooceros taooceros marked this pull request as draft February 15, 2021 10:12
@taooceros taooceros marked this pull request as ready for review February 15, 2021 10:22
@taooceros taooceros self-assigned this Feb 15, 2021
@jjw24 jjw24 enabled auto-merge February 15, 2021 20:30
@jjw24 jjw24 added the enhancement New feature or request label Feb 15, 2021
@jjw24 jjw24 merged commit 35d3f42 into Flow-Launcher:dev Feb 15, 2021
This was referenced Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants