Skip to content

Make histograms pickleable#60

Draft
Mirochill wants to merge 1 commit into
HdrHistogram:masterfrom
Mirochill:fix-51-pickle-histograms
Draft

Make histograms pickleable#60
Mirochill wants to merge 1 commit into
HdrHistogram:masterfrom
Mirochill:fix-51-pickle-histograms

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • Add explicit pickle state handling for HdrHistogram so ctypes-backed encoder/count storage is rebuilt on unpickle.
  • Preserve constructor settings, non-zero counts, min/max/total values, timestamps, tag, and conversion ratio across round trips.
  • Add a pickle round-trip regression covering recorded counts and metadata.

Fixes #51

Validation

  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD
  • git show --check --stat --oneline HEAD
  • Not run locally

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.

HdrHistogram object is not picklable

1 participant