Drwalin / ICon7

Asynchronous C++ RPC library based on ICon6, but networking library agnostic. Currently only uSocekts tcp/ssl reliable networking backend is implemented.
GNU General Public License v3.0
1 stars 0 forks source link

Replace Host::peersToFlush with concurrent bitset/hash_set #16

Open Drwalin opened 4 months ago

Drwalin commented 4 months ago

To erase the need for passing a lot around ExecuteAddPeerToFlush.

Example implementation hint: 2-level bitset for testing 1.: which qword in real bitset has any bit set to 1.

Otherwise use concurrent set or hashtable

Drwalin commented 4 months ago

Before implementing this, optimise code responsible for passing around Command's

Drwalin commented 4 months ago

Temporary replaced with just iterating over each peer in every invocation _InternalSingleLoopIteration in commit 2b2b3d9.