You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dashmap::DashMap<UserId, smallmap::Map<StreamId, EventSender>> where UserId is the u64 user id, StreamId is a u8. could probably be more memory efficient and faster (?) than the current solution (which is just a tokio broadcast channel + arced events). EventSender should be an unbounded sender so that we hold the lock for the least amount of time (smallmap also helps here as it is as fast as one can get with u8 keys)
The text was updated successfully, but these errors were encountered:
A
dashmap::DashMap<UserId, smallmap::Map<StreamId, EventSender>>
whereUserId
is theu64
user id,StreamId
is au8
. could probably be more memory efficient and faster (?) than the current solution (which is just a tokio broadcast channel + arced events). EventSender should be an unbounded sender so that we hold the lock for the least amount of time (smallmap also helps here as it is as fast as one can get with u8 keys)The text was updated successfully, but these errors were encountered: