Skip to content

Change vector with linkedlist #24

@alekay2200

Description

@alekay2200

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 client

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions