Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Refreshing Objects

by CountZero (Bishop)
on Nov 23, 2003 at 21:04 UTC ( [id://309350]=note: print w/replies, xml ) Need Help??


in reply to OT: Refreshing Objects

Just a try: when going sequentially through the refreshed list of groups, check your objects for each group you go through, updating the info on existing objects or adding new objects for new groups; "tag" every group added or updated so you know you have visited it for this refresh.

When you reach the end of the refresh list, now go through all your objects and drop those which have no "visited" tag (meaning they are no longer in the refreshed list and presumably were removed). At the same time "reset" the visited tag for next time around.

You thus go once through the refreshed list and once through your object list: seems not too "expensive" to me.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309350]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found