-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Sync ClientImplementation the syncronous version of the websocket clientImplementation the syncronous version of the websocket client
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
Sync ClientImplementation the syncronous version of the websocket clientImplementation the syncronous version of the websocket client