Skip to content

v0.3.0

Compare
Choose a tag to compare
@diegommm diegommm released this 28 Oct 01:59
· 4 commits to main since this release
bba865c

What's Changed

  • Split PoolItemProvider into ItemProvider and Estimator by @diegommm in #3
    • Fix bug in ReaderBufferer always putting values as zero-sized
    • Split PoolItemProvider into ItemProvider and Estimator
    • ItemProvider should now return items of the specified size, and also
      reset items for reuse
    • Change the size logic to work on capacity instead of length
    • The EstimatorStats struct now allows backwards compatibility with already
      written Estimator implementations
    • AdaptivePool: add a GetWithSize method that will get an item from the
      sync.Pool and return it if it has at least the requested size, or otherwise
      drop it and allocate a new object with that size instead
    • ReaderBufferer: allow specifying the size of the preallocated buffer
    • Fix nil pointer deref
    • rephrase: size -> cost
  • Fix remaining references to the word size by @diegommm in #4
  • README.md: Fix the usage of the word Len by @diegommm in #5
  • Fix and improve docs by @diegommm in #6

Full Changelog: v0.2.0...v0.3.0