diff options
author | Daniel Dragan <bulk88@hotmail.com> | 2014-03-01 06:20:16 -0500 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2014-04-08 13:03:47 +0100 |
commit | 8ce7a7e8b08f04e70601dd7b8717af879a4ea397 (patch) | |
tree | 82b95b847b6c8b9ddafe2deb5a7e4c2ab2b1d2be /win32/win32.h | |
parent | 4a70680af1019e8cdeaf52bb506d9fbda1dd4f05 (diff) | |
download | perl-8ce7a7e8b08f04e70601dd7b8717af879a4ea397.tar.gz |
speed up miniperl require on Win32
These 3 optimizations reduce the number of, usually failing, I/O calls
for each "require" for miniperl only. None are appropriate except for
Win32. See #121119 for details.
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h index e109939070..8db0303965 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -13,6 +13,7 @@ # define _WIN32_WINNT 0x0500 /* needed for CreateHardlink() etc. */ #endif +/* Win32 only optimizations for faster building */ #ifdef PERL_IS_MINIPERL /* this macro will remove Winsock only on miniperl, PERL_IMPLICIT_SYS and * makedef.pl create dependencies that will keep Winsock linked in even with @@ -20,6 +21,8 @@ * level in full perl */ # define WIN32_NO_SOCKETS +/* less I/O calls during each require */ +# define PERL_DISABLE_PMC #endif #ifdef WIN32_NO_SOCKETS |