synchronized ChannelBuffer + ChannelBuffer pool
rzo
rzo at gmx.de
Wed Sep 30 14:51:05 EDT 2009
Hello,
first: thanks for this great framework.
During my tests with netty I have run into issues because I was assuming
that buffers in netty are synchronized.
I think it would make sense to provide a
Channels.synchronizedChannel(...) similar to java's
Collections.synchronized...()
What do you think ?
I have overcome the synchronization issue by creating a new
ChannelBuffer before sending it downstream.
How expensive is ChannelBuffer creation/garbage collection ?
Would a buffer pool make sense ?
is ChannelBuffer.discardBytes() better than creating a new buffer for
sending downstream ?
- Ron
More information about the netty-users
mailing list