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
Post a Comment