Merge lp:~sidnei/txstatsd/faster-exponentially-decaying-sample into lp:txstatsd
Proposed by
Sidnei da Silva
Status: | Merged |
---|---|
Approved by: | Sidnei da Silva |
Approved revision: | 90 |
Merged at revision: | 88 |
Proposed branch: | lp:~sidnei/txstatsd/faster-exponentially-decaying-sample |
Merge into: | lp:txstatsd |
Diff against target: |
113 lines (+26/-40) 1 file modified
txstatsd/stats/exponentiallydecayingsample.py (+26/-40) |
To merge this branch: | bzr merge lp:~sidnei/txstatsd/faster-exponentially-decaying-sample |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lucio Torre (community) | Approve | ||
Review via email: mp+105438@code.launchpad.net |
Commit message
Speed up update() by avoiding attribute access where possible
Description of the change
Speed up update() by avoiding attribute access where possible
To post a comment you must log in.
we can also remove the inner call to time.time() and use now = timestamp