From: Ken Bloom Date: 2009-02-09T14:09:12+09:00 Subject: Re: calling random On Sun, 08 Feb 2009 15:56:04 -0500, Boris Schmid wrote: > Boris Schmid wrote: >> Am I correct if I remember that using send is quite expensive in >> cpu-time? Especially when I am using it millions of times.. $pop is >> about 5000 hosts large. >> >> > Ah. It's not that bad. send("fib",2) is about twice as slow as fib(2). > So I lose 2 minutes in 2 hours of simulation, which is fine. > > Thanks for the answers! It should be a bit faster if you use :fib instead of "fib", because the ruby runtime has to internally "fib" to :fib every time you call send(). --Ken -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/