[Koha-devel] Circular references

Chris Cormack chris at bigballofwax.co.nz
Mon Nov 29 01:58:29 CET 2010


2010/11/27 LAURENT Henri-Damien <henridamien.laurent at biblibre.com>:
> Hi
> During KohaCon, Plack and Data persistance was discussed and wome work
> was done on that.
> Ian posted a perl script.
> Marc did another script. It works quite fast.
> I wanted to publicise this in order to contribute code so that
> eventually all the circular references could be solved.
> Find enclosed both scripts : CIRCDeps.pl from Marc and dep_check.pl
> We will try and keep you informed of what we achieved with that.
>
Unfortunately (if i'm reading correctly) this will only find modules
that have circular dependencies on other modules.

What causes memory leaks is circular references in the code, where an
object refers to an object that refers to the inital object (or to
another object that refers to it).

http://stackoverflow.com/questions/2223721/common-perl-memory-reference-leak-patterns

These are much harder to find. But there is a module that can help us
http://search.cpan.org/dist/Devel-Cycle/lib/Devel/Cycle.pm

I'd love to see some work done on this, because memory leaks will be a
blocker to implementing persistent code.

Chris


More information about the Koha-devel mailing list