Skip to content

Commit

Permalink
reduce memory allocations on observe operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Achille Roussel committed Dec 3, 2016
1 parent 72d77b2 commit 0686610
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ func metricOpSet(state *metricState, value float64, mod time.Time, exp time.Time
}

func metricOpObserve(state *metricState, value float64, mod time.Time, exp time.Time, version uint64) {
if state.metrics == nil {
state.metrics = make([]metricSubState, 0, 100)
}
state.version = version
state.modTime = mod
state.expTime = exp
Expand Down

0 comments on commit 0686610

Please sign in to comment.