Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 273065: Remove special code fro calculating bucket index in linear histograms... (Closed)

Created:
11 years, 2 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org
Visibility:
Public.

Description

Remove special code fro calculating bucket index in linear histograms IMO, the original code was a premature optimization, and worse yet, it had a subtle off by 1 bug due to floating point rounding (which was identified by ERoman.... Thanks!!). This CL removes the special code from linear histograms, and relies on the "standard" binary search approach to locate the correct bucket when a new sample is processed. r=eroman BUG=24160

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -21 lines) Patch
M base/histogram.h View 1 chunk +0 lines, -2 lines 0 comments Download
M base/histogram.cc View 3 chunks +8 lines, -19 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jar (doing other things)
11 years, 2 months ago (2009-10-15 07:11:26 UTC) #1
eroman
lgtm
11 years, 2 months ago (2009-10-15 22:59:54 UTC) #2
jar (doing other things)
11 years, 2 months ago (2009-10-17 06:22:16 UTC) #3
This was landed as:

Committed revision 29371.

There was an error in gcl, so I'll manually close this CL.

Powered by Google App Engine
This is Rietveld 408576698