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 |
Message body not shown because it is not plain text.