summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-05 06:52:25 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-05 06:52:25 +0000
commitca4e74cd17dd8fd078f5c9ea0630da36c21a54a6 (patch)
tree07eea7a6b6d6251b7a63fac4c725a4300fdcae6a
parent1a04d0358afc3470dd1c9e9fd30153615560bfc6 (diff)
downloadperl-ca4e74cd17dd8fd078f5c9ea0630da36c21a54a6.tar.gz
avoid expensive Version_check (from Andreas Koenig)
p4raw-id: //depot/perl@4754
-rw-r--r--Changes13
-rw-r--r--lib/ExtUtils/MM_Unix.pm6
-rw-r--r--lib/ExtUtils/MM_VMS.pm7
-rw-r--r--lib/ExtUtils/MM_Win32.pm6
-rw-r--r--lib/ExtUtils/MakeMaker.pm14
5 files changed, 11 insertions, 35 deletions
diff --git a/Changes b/Changes
index fd67c79cbb..953dfb7b89 100644
--- a/Changes
+++ b/Changes
@@ -79,6 +79,14 @@ Version v5.5.640 Development release working toward 5.6
----------------
____________________________________________________________________________
+[ 4753] By: gsar on 2000/01/05 06:48:22
+ Log: From: andreas.koenig@anima.de (Andreas J. Koenig)
+ Date: 03 Jan 2000 21:56:02 +0100
+ Message-ID: <sfcvh5azxgd.fsf@hohenstaufen.in-berlin.de>
+ Subject: Reloading File::Copy
+ Branch: perl
+ ! Changes lib/File/Copy.pm t/lib/filecopy.t
+____________________________________________________________________________
[ 4752] By: gsar on 2000/01/04 01:19:20
Log: s/USE_TEXTMODE_SCRIPTS/PERL_TEXTMODE_SCRIPTS/g
Branch: perl
@@ -270,11 +278,6 @@ ____________________________________________________________________________
Branch: perl
! lib/diagnostics.pm
____________________________________________________________________________
-[ 4722] By: gsar on 1999/12/28 03:14:48
- Log: avoid "used once" warning
- Branch: perl
- ! lib/diagnostics.pm
-____________________________________________________________________________
[ 4721] By: gsar on 1999/12/28 03:10:32
Log: ebcdic tweaks for tests from Peter Prymmer
Branch: perl
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm
index 8940bf1ef9..438ab01cba 100644
--- a/lib/ExtUtils/MM_Unix.pm
+++ b/lib/ExtUtils/MM_Unix.pm
@@ -3611,12 +3611,6 @@ config :: $(INST_AUTODIR)/.exists
'.$self->{NOECHO}.'$(NOOP)
';
- push @m, qq{
-config :: Version_check
- $self->{NOECHO}\$(NOOP)
-
-} unless $self->{PARENT} or ($self->{PERL_SRC} && $self->{INSTALLDIRS} eq "perl") or $self->{NO_VC};
-
push @m, $self->dir_target(qw[$(INST_AUTODIR) $(INST_LIBDIR) $(INST_ARCHAUTODIR)]);
if (%{$self->{HTMLLIBPODS}}) {
diff --git a/lib/ExtUtils/MM_VMS.pm b/lib/ExtUtils/MM_VMS.pm
index 31ca69067e..f3de323e53 100644
--- a/lib/ExtUtils/MM_VMS.pm
+++ b/lib/ExtUtils/MM_VMS.pm
@@ -1106,13 +1106,6 @@ config :: $(INST_AUTODIR).exists
$(NOECHO) $(NOOP)
';
- push @m, q{
-config :: Version_check
- $(NOECHO) $(NOOP)
-
-} unless $self->{PARENT} or ($self->{PERL_SRC} && $self->{INSTALLDIRS} eq "perl") or $self->{NO_VC};
-
-
push @m, $self->dir_target(qw[$(INST_AUTODIR) $(INST_LIBDIR) $(INST_ARCHAUTODIR)]);
if (%{$self->{MAN1PODS}}) {
push @m, q[
diff --git a/lib/ExtUtils/MM_Win32.pm b/lib/ExtUtils/MM_Win32.pm
index 499b57c5ab..534f26d823 100644
--- a/lib/ExtUtils/MM_Win32.pm
+++ b/lib/ExtUtils/MM_Win32.pm
@@ -749,12 +749,6 @@ config :: $(INST_AUTODIR)\.exists
'.$self->{NOECHO}.'$(NOOP)
';
- push @m, qq{
-config :: Version_check
- $self->{NOECHO}\$(NOOP)
-
-} unless $self->{PARENT} or ($self->{PERL_SRC} && $self->{INSTALLDIRS} eq "perl") or $self->{NO_VC};
-
push @m, $self->dir_target(qw[$(INST_AUTODIR) $(INST_LIBDIR) $(INST_ARCHAUTODIR)]);
if (%{$self->{HTMLLIBPODS}}) {
diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm
index 00bcb449cc..3b51900651 100644
--- a/lib/ExtUtils/MakeMaker.pm
+++ b/lib/ExtUtils/MakeMaker.pm
@@ -91,19 +91,11 @@ if ($Is_Cygwin) {
require ExtUtils::MM_Cygwin;
}
-# The SelfLoader would bring a lot of overhead for MakeMaker, because
-# we know for sure we will use most of the autoloaded functions once
-# we have to use one of them. So we write our own loader
-
full_setup();
-# The only subroutine we do not SelfLoad is Version_Check because it's
-# called so often. Loading this minimum still requires 1.2 secs on my
-# Indy :-(
-
-# 3 years later we can say, Version_check takes 0.2 secs on my Linux
-# and MakeMaker has become so stable that we could drop the use of
-# Version_check altogether
+# The use of the Version_check target has been dropped between perl
+# 5.5.63 and 5.5.64. We must keep the subroutine for a while so that
+# old Makefiles can satisfy the Version_check target.
sub Version_check {
my($checkversion) = @_;