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
Sync client use vectors to keeps the in/out events. Vectors does not free the memory when the items are move out the queue. If you execute the method send to may times before calling the internal loop, the internal queue will occupy a lot of memory no matter if is empty. For example if you try to send 10k messages and each output event occupy 20 bytes, the queue will use 10k * 20 bytes of memory.
LinkedList solve this problem because every time you push or pop data a the linkedlist will allocate or deallocate memory.
The text was updated successfully, but these errors were encountered:
Change vector with linkedlist.
Sync client use vectors to keeps the in/out events. Vectors does not free the memory when the items are move out the queue. If you execute the method send to may times before calling the internal loop, the internal queue will occupy a lot of memory no matter if is empty. For example if you try to send 10k messages and each output event occupy 20 bytes, the queue will use 10k * 20 bytes of memory.
LinkedList solve this problem because every time you push or pop data a the linkedlist will allocate or deallocate memory.
The text was updated successfully, but these errors were encountered: