Observable on Set?

J

James Coglan

[Note: parts of this message were removed to make it a legal post.]

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?
 
J

James Coglan

[Note: parts of this message were removed to make it a legal post.]

2009/6/10 James Coglan said:
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,474
Latest member
AntoniaDea

Latest Threads

Top