This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #115112] avoid repeated calls to path_is_absolute() and rename it
authorTony Cook <tony@develop-help.com>
Sun, 2 Jun 2013 01:33:44 +0000 (11:33 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 4 Jun 2013 09:13:20 +0000 (19:13 +1000)
commit511712dced790d8f8936a07531d540aa4f434be9
treed9378e3fcf1da0a266c79bfcbf6f24a27e10348a
parenta5840deeec2a32c87d6f9887bcedd7b2c14249a2
[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.
embed.fnc
embed.h
pp_ctl.c
proto.h