in reply to Efficient partial deep cloning
But it seems to me that these data structures have meta-information which you aren't currently storing. If you want efficiency you should store that information rather than recalculate it via a search.
One way to do this would be to wrap accesses to the data structure so that when a logic var is added to it, it's position is remembered (perhaps in some kind of inside-out object attribute stash). I'd do it this way, with a class around the data structure (add a "addLogicVar" method) although you could use TIE I guess.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Efficient partial deep cloning
by Ovid (Cardinal) on Jan 08, 2008 at 12:09 UTC | |
by exussum0 (Vicar) on Jan 08, 2008 at 15:32 UTC | |
by Ovid (Cardinal) on Jan 09, 2008 at 10:29 UTC |