HomePhorge

Feature #2597 -- eliminate OpenStruct for performance...
2cf45283d7eeUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Feature #2597 -- eliminate OpenStruct for performance...

A bit of profiling shows that most of the time spent in clustering is spent
trolling around through OpenStruct. Replacing this with a hash or, where
sane, an array for the stack frame in our non-recursive implementations makes
performance significantly faster. (3 seconds to .65 seconds faster.)

I guess those developer niceties do have some cost after all. Better to take
the hit on readability and prefer performance here.

Details

Provenance
Daniel Pittman <daniel@rimspace.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU9584cda2a529: Feature #2597 -- use O(1) methods as often as possible.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@rimspace.net> committed rPU2cf45283d7ee: Feature #2597 -- eliminate OpenStruct for performance... (authored by Daniel Pittman <daniel@rimspace.net>).Feb 4 2011, 1:45 AM