c# - Fastest-single-write multiple-read collection -


simple question, complex problem:

a lot of data coming in network on single socket, faster 1 thread can consume. in fact, dispatching work threadpool takes time.

so add incoming items blockingcollection<t> , dispatch them on separate thread.

however, @ times of high usage, can still take long. tried stripping blockingcollection<t> , concurrentqueue<t> implementations remove extraneous features made little difference.

what kind of single-write multi-read concurrent queue implementation beat blockingcollection<t>? data must consumed asap.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -