Using the Ruby Chatty example in my examples repo [1] I see painful
slow runtime performance. To run the example, first launch the Guru

 $ ruby guru.rb

Then, in another terminal, start a single Student instance:

 $ ruby student

What you'll see is the student starts off with a 1 or 2 messages,
but then immediately gets sluggish. If you start another instance of
Student things degrade very quickly.

If, however, in student.rb we change:




then there is no apparently sluggishness until several thousand messages
have been sent, and multiple instances of Student are able to run
without slowing down.

Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.

Attachment: pgp3TJm4l284j.pgp
Description: PGP signature

Reply via email to