This repository was archived by the owner on Nov 5, 2018. It is now read-only.
This repository was archived by the owner on Nov 5, 2018. It is now read-only.
Allocate smaller nodes in unbounded channels #81
Closed

Description
If an unbounded channel is created for sending only one message, 31 of the initially allocated 32 slots won't be used at all.
The situation can be improved by starting with a single-slot node in the beginning and allocating exponentially larger nodes for further messages.
Perhaps we should also avoid allocating anything at all in the channel constructor. This might give us some performance wins in cases where no messages are sent through the channel.
Regarding interaction with #80, only nodes of size 32 should be recycled.