HomePhorge

zaml: statically determine the to_ascii8bit implementation.
4d4a75ae70b4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

zaml: statically determine the to_ascii8bit implementation.

Instead of asking every single string the same question, "do you respond to
encoding", we can just figure that out once and choose an implementation
based on the result - since it is a static test on the same class every time.

This saves ~ 0.1 second of runtime, which is small but cheap.

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
rPU2c679f037e05: Merge branch 'bug/2.7.x/2888_fix_puppetdlock_deadlock' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU4d4a75ae70b4: zaml: statically determine the to_ascii8bit implementation. (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 18 2012, 12:19 AM