in reply to Re: Better algorithm or data structure?
in thread Better algorithm or data structure?
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.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Better algorithm or data structure?
by BrowserUk (Patriarch) on Aug 30, 2010 at 16:16 UTC | |
by locked_user sundialsvc4 (Abbot) on Aug 30, 2010 at 21:57 UTC |