Theine

Latest version: v0.4.4

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.6.0

API Changes:
- Added a new option, `UseEntryPool`, to the builder, which defaults to false. Enabling this option will reuse evicted entries through a sync pool. The sync pool was used by default before v0.6.0 and could not be turned off; but it only benefits systems optimized for allocation and those with heavy concurrent writes. See the README for more details.

Enhancements:
- Theine now uses a single LRU window as the "W" part of W-TinyLFU, adaptively changing its size based on hit ratio. This approach is consistent with Caffeine and should improve hit ratios across various workloads.

0.5.0

API Changes:
- The NVM secondary cache has been moved to a separate package: https://github.com/Yiling-J/theine-nvm.

Enhancements:
- Reduced `Set` allocations, making Theine zero allocation (amortized).
- Improved read performance slightly by utilizing a cached `now` value.
- Fixed race conditions in cost (weight) updates that could cause inaccurate policy cost.
- Added benchmarks for different `GOMAXPROC` values in the README.

0.4.4

- Improve decorator typing and fix core sketch bug

0.4.3

- Add license to pyproject.toml

0.4.2

- Fix mypy no-implicit-reexport

0.4.1

Added
- Add close/stats API

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.