Skip to content

Reduce allocations in System.Threading.Channels for netstandard2.* and net461#46458

Merged
danmoseley merged 3 commits intodotnet:masterfrom
KorneiDontsov:channels/reduce-allocations
Jan 22, 2021
Merged

Reduce allocations in System.Threading.Channels for netstandard2.* and net461#46458
danmoseley merged 3 commits intodotnet:masterfrom
KorneiDontsov:channels/reduce-allocations

Conversation

@KorneiDontsov
Copy link
Contributor

System.Threading.Channels.AsyncOperation<TResult> is well optimized for .NET Core, but there are no optimizations for .NET Standard 2.0 and .NET Framework. They use the same code as .NET Standard 1.3.
I used ThreadPool and ExecutionContext API, that are available in .NET Standard 2.* and .NET Framework, to reduce the amount of allocations.

@dnfadmin
Copy link

dnfadmin commented Dec 29, 2020

CLA assistant check
All CLA requirements met.

…d net461

System.Threading.Channels.AsyncOperation<TResult> is well optimized for .NET Core, but there are no optimizations for .NET Standard 2.0 and .NET Framework. They use the same code as .NET Standard 1.3.
@KorneiDontsov KorneiDontsov force-pushed the channels/reduce-allocations branch from d0372d8 to 8273de5 Compare December 30, 2020 00:26
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks.

@KorneiDontsov
Copy link
Contributor Author

@stephentoub, you're welcome!

@KorneiDontsov
Copy link
Contributor Author

Some checks were not successful. Why? Can I help with this?

@danmoseley
Copy link
Member

I hit retry on those jobs.

@danmoseley danmoseley merged commit 665c65a into dotnet:master Jan 22, 2021
@danmoseley
Copy link
Member

Thanks for the contribution @KorneiDontsov . We welcome contributions, perhaps there is some other issue or contribution you're interested in in.

@ghost ghost locked as resolved and limited conversation to collaborators Feb 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants