Load Archive::Tar only when used (in Dist::Builder, Plugin::TestRelease) #140

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@dolmen
Contributor

dolmen commented Jan 22, 2013

This patch replaces use Archive::Tar with appropriate require Archive::Tar in Dist::Zilla::Dist::Builder and Dist::Zilla::Plugin::TestRelease.
One less module loaded every time.

Thanks to Devel::TraceUse for the help:

perl -d:TraceUse -Ilib -MDist::Zilla -e '$Dist::Zilla::VERSION=$Dist::Zilla::Plugin::GatherDir::VERSION=4.300030; require "bin/dzil"' nop
Load Archive::Tar only when used (in Dist::Builder, Plugin::TestRelease)
Replace 'use Archive::Tar' with appropriate 'require Archive::Tar'.
One less module loaded every time.
Thanks to Devel::TraceUse for the catch.
@rjbs

This comment has been minimized.

Show comment
Hide comment
@rjbs

rjbs Jan 22, 2013

Owner

mereged

Owner

rjbs commented Jan 22, 2013

mereged

@rjbs rjbs closed this Jan 22, 2013

@dolmen dolmen referenced this pull request in dagolden/Dist-Zilla-Plugin-CheckExtraTests Jan 30, 2013

Merged

Lazy load dependencies #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment