Skip to content

Change statistic bucketing from timestamp based, to a rolling window.#17

Open
corsc wants to merge 4 commits intomyteksi:masterfrom
corsc:mem-usage
Open

Change statistic bucketing from timestamp based, to a rolling window.#17
corsc wants to merge 4 commits intomyteksi:masterfrom
corsc:mem-usage

Conversation

@corsc
Copy link

@corsc corsc commented May 2, 2018

This reduces the memory churn (allocations and GC) and according to benchmarks improves speed as well

Bench Compare

benchmark                             old ns/op     new ns/op     delta
BenchmarkRollingNumberIncrement-8     220           85.5          -61.14%

The original discussion was here: https://diff.myteksi.net/D84737
Includes #16 and #15

corsc added 4 commits May 2, 2018 09:35
@corsc corsc changed the title Mem usage Change statistic bucketing from timestamp based, to a rolling window. May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant