Skip to content

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

Closed
wants to merge 1 commit into from

2 participants

@dolmen
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
@dolmen dolmen 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.
73916d1
@rjbs
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
Something went wrong with that request. Please try again.