diff options
author | Tony Cook <tony@develop-help.com> | 2013-06-02 11:33:44 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2013-06-04 19:13:20 +1000 |
commit | 511712dced790d8f8936a07531d540aa4f434be9 (patch) | |
tree | d9378e3fcf1da0a266c79bfcbf6f24a27e10348a /embed.fnc | |
parent | a5840deeec2a32c87d6f9887bcedd7b2c14249a2 (diff) | |
download | perl-511712dced790d8f8936a07531d540aa4f434be9.tar.gz |
[perl #115112] avoid repeated calls to path_is_absolute() and rename it
A micro-optimization inspired by bulk88's perl #115112.
The original proposal suggested applying a two changes that removed the
duplicate calls, and then explicitly inlined path_is_absolute().
This version removes the duplicate calls, renames the function to better
match it's purpose and asks the compiler to inline it.
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1926,7 +1926,7 @@ sR |PerlIO *|check_type_and_open|NN SV *name sR |PerlIO *|doopen_pm |NN SV *name #endif s |SV ** |adjust_stack_on_leave|NN SV **newsp|NN SV **sp|NN SV **mark|I32 gimme|U32 flags -sRn |bool |path_is_absolute|NN const char *name +iRn |bool |path_is_searchable|NN const char *name sR |I32 |run_user_filter|int idx|NN SV *buf_sv|int maxlen sR |PMOP* |make_matcher |NN REGEXP* re sR |bool |matcher_matches_sv|NN PMOP* matcher|NN SV* sv |