HomePhorge

file_serving: avoid rewriting paths if possible.
314c3daf74fdUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

file_serving: avoid rewriting paths if possible.

A trivial change - only rewrite from '//' to '/', rather than from '/+' -
means that we can reduce the garbage generation in this
function substantially. Most paths now pass through unmodified.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb54f8cdd3d97: log_paths: memoize the entire value, not just part of it.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU314c3daf74fd: file_serving: avoid rewriting paths if possible. (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 18 2012, 3:12 AM