Is there any reason why Socket#recv can't take an optional buffer 
argument the way IO#read does?

Otherwise, Socket#recv is always allocating strings, hence burdening GC.

I saw about a 20% improvement by using #read instead of #recv in some 
socket code, but of course the unbuffered vs. buffered difference comes 
into play there too.

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407