remove dl_nonlazy global if unused in Dynaloader
authorDaniel Dragan <bulk88@hotmail.com>
Wed, 8 Oct 2014 05:42:23 +0000 (01:42 -0400)
committerTony Cook <tony@develop-help.com>
Fri, 10 Oct 2014 00:29:57 +0000 (11:29 +1100)
commit11f610b5c5372b7dbb18aeb4f58ccfba2c4d715f
tree30ba926be12d9226e3bb58cbd6ac7baed7df8081
parentd3e5298acc122505a6c2f00efdf1d69d37b194fb
remove dl_nonlazy global if unused in Dynaloader

Saves an int of memory per interp. Removes a env var lookup, and on Win32
also remove a registry check for PERL_DL_NONLAZY. This speeds up start up
time of interp a tiny bit. While platforms other than hpux and dlopen use
RTLD_LAZY, they use it unconditionally ignoring PERL_DL_NONLAZY. I am not
judging that decision in this commit.
ext/DynaLoader/DynaLoader_pm.PL
ext/DynaLoader/dl_dlopen.xs
ext/DynaLoader/dl_hpux.xs
ext/DynaLoader/dlutils.c