Skip Menu |

This queue is for tickets about the Graph CPAN distribution.

Report information
The Basics
Id: 123236
Status: resolved
Priority: 0/
Queue: Graph

People
Owner: Nobody in particular
Requestors: SLOYD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [patched] make Graph faster to load
At my workplace we are trying to use the Graph module for some library dependency resolving work, which runs at Perl program startup to pick up Perl libraries from non-standard libpaths. And we find Graph is quite slow to load, causing it unfavorable in cases where program startup time is important. After some profiling I wrote a patch that does lazy loading of some of the modules used by Graph (patch attached). Basically the changes relate to deep_copy(), so the time is saved as long as user does not use deep_copy(). On my machine this reduced the time more than half, from 150ms to 70ms, to "use Graph".
Subject: patch
Download patch
application/octet-stream 2.1k

Message body not shown because it is not plain text.

Thanks, this made the test-suite go from taking 10 secs on my machine to 7!