HomePhorge

maint: Don't File#expand_path when unmunging file paths
11fda78b0f9dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: Don't File#expand_path when unmunging file paths

We call expand_path when munging the path, so it's redundant (and
surprisingly expensive) to expand_path again when unmunging. It suffices
to merely join the pieces.

Paired-With: Josh Cooper <josh@puppetlabs.com>

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUad4316ad4122: (#9671) Use Array#concat rather than +=
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU11fda78b0f9d: maint: Don't File#expand_path when unmunging file paths (authored by Nick Lewis <nick@puppetlabs.com>).Nov 11 2011, 11:26 PM