From: Joel VanderWerf Date: 2008-05-17T07:48:53+09:00 Subject: Socket#recv into a buffer 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