[Koha-devel] Circular references

LAURENT Henri-Damien henridamien.laurent at biblibre.com
Mon Nov 29 09:08:23 CET 2010


Le 29/11/2010 01:58, Chris Cormack a écrit :
> 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.
Yes, both (Ian and Marc scripts) are investigating Circular Modules
references.

> 
> 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 am aware of Devel::Cycle, but I doubt we have circular objects
references other than Modules, since Koha has mostly been procedural and
not object oriented.

> 
> I'd love to see some work done on this, because memory leaks will be a
> blocker to implementing persistent code.
Yes. Let's do it.
Let's try and plan meetings on that to share experiences and
achievements ? We could add discussion on schedule to our 8th December
meeting.


-- 
Henri-Damien LAURENT


More information about the Koha-devel mailing list