Merge lp:~lucio.torre/txstatsd/make-ewma-sampling-faster2 into lp:txstatsd
Proposed by
Lucio Torre
Status: | Merged |
---|---|
Approved by: | Sidnei da Silva |
Approved revision: | 64 |
Merged at revision: | 67 |
Proposed branch: | lp:~lucio.torre/txstatsd/make-ewma-sampling-faster2 |
Merge into: | lp:txstatsd |
Diff against target: |
155 lines (+48/-26) 2 files modified
txstatsd/stats/exponentiallydecayingsample.py (+24/-24) txstatsd/tests/stats/test_exponentiallydecayingsample.py (+24/-2) |
To merge this branch: | bzr merge lp:~lucio.torre/txstatsd/make-ewma-sampling-faster2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sidnei da Silva | Approve | ||
Review via email: mp+90780@code.launchpad.net |
Commit message
make ewma sampling take 23% of the time it takes now
Description of the change
make ewma sampling take 23% of the time it takes now
it also changes the rescale threshold so the difference is never bigger than 600 because:
In [21]: math.exp(717)
-------
OverflowError Traceback (most recent call last)
/home/lucio/
OverflowError: math range error
To post a comment you must log in.
i *think* del self._values[:] gives a better hint to GC than self._values = [], but [citation needed]