[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

Re: String#nstrip ?

From: "Berger, Daniel" <Daniel.Berger@...>
Date: 2006-05-18 16:07:15 UTC
List: ruby-core #7902
> -----Original Message-----
> From: Daniel Berger [mailto:Daniel.Berger@qwest.com] 
> Sent: Thursday, May 18, 2006 9:48 AM
> To: ruby-core@ruby-lang.org
> Subject: String#nstrip ?

Slight copy/paste bug there.  It should just be:

# nullbench.rb
require 'benchmark'
 
MAX = 100000
STRING = "hello\0\0\0\0"
 
Benchmark.bm do |x|
   x.report("String#split"){
      MAX.times{ STRING.split("\0").first }
   }
 
   x.report("String#nstrip"){
      MAX.times{ STRING.nstrip }
   }
end

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


In This Thread

Prev Next