josh/rack-mount — Issue #31: Stale frequencies in analysis
Author: jfirebaugh
Created: 2011-10-18 01:59:36+00:00
State: open

While reading the code, I found what looks like a minor bug. `Analysis::Splitting` has a `@key_frequency` instance variable which doesn't get reset by the `expire!` method, so each call to `report` will increase the count of previously existing keys.

Since `@report` is also cached, it looks like the key frequency histogram can simply be a local variable with no loss of performance.