in reply to Re^3: CPAN indexes *.pm as "Documentation"? (Memory leaks)
in thread CPAN indexes *.pm as "Documentation"?
I have a method that gives a short unique ID-string. Easier to read (a number might be confused with other data). You probably get a little more speed of using arrays and ints.I believe this is the "classic" InsideOut approach, right?
I only store sup and an array with subs in obj and use methods to find brothers. Fewer possible bugs to keep obj updated when deleting/adding/serializing/etc.I notice that I'm doing a lot of calls for sisters/children/parents, and not that many tree modifications - so calculating the relationships for each call seems inefficient.
I have Links between objects in different parts of the tree (you don't need that, I'd guess). Would have been better to make objects out of Links but I have a small subapi to e.g. add link, del link and find links to/from obj.I'm a bit unclear what you mean by links. Currently, I have a $self->{'GENERIC'} = {} field in each node object (with getters and setters), so I can attach additional generic key/value pairs to the objects.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CPAN indexes *.pm as "Documentation"? (Memory leaks)
by BerntB (Deacon) on Oct 02, 2005 at 13:41 UTC | |
by rvosa (Curate) on Oct 03, 2005 at 08:00 UTC |