
22 Apr
2005
22 Apr
'05
11:13 a.m.
Iain Hanson wrote:
On Fri, 2005-04-22 at 12:42 +0300, Peter Dimov wrote:
Rationale: buffer management is a pain with multiple callbacks active ;-)
This would give a significant performance hit as there will now be two copies of the data. The 1st from kennel space to the library and the second in the callback from the library to the user.
And in some cases setting the buffer sizes of the socket to 0 will also remove the buffering in the kernel and only use usermode buffers. And making to many choices on memory and thread managment isn't a good idea in a general purpose networking library. /Michel