in reply to Re^2: 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 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 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.
In total, this was little code and never gave me any problem. If I should redo it I'd probably let the IDs be invisible in the api, just to be cleaner.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: CPAN indexes *.pm as "Documentation"? (Memory leaks)
by rvosa (Curate) on Oct 01, 2005 at 21:23 UTC | |
by BerntB (Deacon) on Oct 02, 2005 at 13:41 UTC | |
by rvosa (Curate) on Oct 03, 2005 at 08:00 UTC |