Skip to content

Fairness counter: use sliding window#9422

Merged
dnr merged 1 commit intotemporalio:mainfrom
dnr:cms4
Mar 9, 2026
Merged

Fairness counter: use sliding window#9422
dnr merged 1 commit intotemporalio:mainfrom
dnr:cms4

Conversation

@dnr
Copy link
Copy Markdown
Contributor

@dnr dnr commented Feb 27, 2026

What changed?

Use a sliding window for count-min sketch cells.

Why?

Use less memory, or use more cells with the same memory.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Reduced accuracy in some extreme scenarios.

@dnr dnr requested review from a team as code owners February 27, 2026 08:13
@dnr dnr merged commit df6d1e8 into temporalio:main Mar 9, 2026
46 checks passed
@dnr dnr deleted the cms4 branch March 9, 2026 21:51
birme pushed a commit to eyevinn-osaas/temporal that referenced this pull request Mar 23, 2026
## What changed?
Use a sliding window for count-min sketch cells.

## Why?
Use less memory, or use more cells with the same memory.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
Reduced accuracy in some extreme scenarios.
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.

2 participants