Re: [PATCH] Git.pm: Make File::Spec and File::Temp requirement lazy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bryan Donlan
Date: Friday, August 15, 2008 - 12:31 pm

On Fri, Aug 15, 2008 at 11:10 AM, Marcus Griep <marcus@griep.us> wrote:

perl's 'require' will only attempt to load a module the first time it
is used; subsequent attempts will result in a quick no-op, so there's
no need to further cache. Unless you mean to cache a negative result?
In which case, the require should be quite fast, as it'll quickly get
a 'file not found' error without needing to do any compilation.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] git-svn and temporary file improvements, Marcus Griep, (Mon Aug 11, 8:53 am)
[PATCH] Git.pm: require Perl 5.6.1, Lea Wiemann, (Wed Aug 13, 3:30 pm)
Re: [PATCH] Git.pm: Make File::Spec and File::Temp require ..., Bryan Donlan, (Fri Aug 15, 12:31 pm)