|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Better algorithm or data structure?by locked_user sundialsvc4 (Abbot) |
| on Aug 30, 2010 at 15:27 UTC ( [id://858025]=note: print w/replies, xml ) | Need Help?? |
|
Oh, fudge. If you think the above posting is brilliant, then, “it came from me.” If not, “I have no idea who just said that.” :-D As you can see, the Interested Parties simply want to know when the state of a Work Item has changed, and they decide what (if anything...) to do in response to that occurrence. The “unique IDs,” which can simply be consecutive arbitrary integers, simply serve as hash-keys. There are endless variations on this idea, but I think you get the idea. And it will produce “orders of magnitude” speed improvements provided that virtual-memory thrashing is not an issue.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||