Merge lp://staging/~sidnei/txstatsd/faster-exponentially-decaying-sample into lp://staging/txstatsd

Proposed by Sidnei da Silva
Status: Merged
Approved by: Sidnei da Silva
Approved revision: 90
Merged at revision: 88
Proposed branch: lp://staging/~sidnei/txstatsd/faster-exponentially-decaying-sample
Merge into: lp://staging/txstatsd
Diff against target: 113 lines (+26/-40)
1 file modified
txstatsd/stats/exponentiallydecayingsample.py (+26/-40)
To merge this branch: bzr merge lp://staging/~sidnei/txstatsd/faster-exponentially-decaying-sample
Reviewer Review Type Date Requested Status
Lucio Torre (community) Approve
Review via email: mp+105438@code.staging.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.
Revision history for this message
Lucio Torre (lucio.torre) wrote :

we can also remove the inner call to time.time() and use now = timestamp

review: Approve
90. By Sidnei da Silva

- Use timestamp as tick if provided

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches