HomePhorge

type: memoize key_attributes for types.
aca79598e98dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

type: memoize key_attributes for types.

The key_attributes have about a 0.05 percent miss rate on the cache, and the
value is static for the life of the type, so we can avoid substantial numbers
of object allocations.

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
rPU8173a6e6c199: Avoid object creation/destruction when possible.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPUaca79598e98d: type: memoize key_attributes for types. (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 18 2012, 2:53 AM