From: James Coglan Date: 2009-06-10T18:44:55+09:00 Subject: [ruby-core:23785] Re: Observable on Set? --0016e6d27c9082e7a8046bfb5316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/6/10 James Coglan > Quick question, is there a reason why Observable uses an Array for storage > instead of a Set? Wouldn't a Set be faster, especially for removing > observers? Are there other places in the standard library where use of data > structures could be improved? > Gah, I was looking at the 1.8 lib. 1.9 uses a Hash. Sorry! --0016e6d27c9082e7a8046bfb5316 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2009/6/10 James Coglan <jcoglan@googlemail.com&g= t;
Quick question, is there a reason why Obs= ervable uses an Array for storage instead of a Set? Wouldn't a Set be f= aster, especially for removing observers? Are there other places in the sta= ndard library where use of data structures could be improved?


Gah, I was looking at the 1.8 lib. 1.9 uses= a Hash. Sorry!

--0016e6d27c9082e7a8046bfb5316--