Skip to content

Releases: bodil/sized-chunks

0.5.0

12 Dec 17:43
v0.5.0
6c5692c
Compare
Choose a tag to compare

CHANGED

  • The Bitmap type (and its helper type, Bits) has been split off into a separate crate, named bitmaps. If you need it, it's in that crate now. sized-chunks does not re-export it. Of course, this means sized-chunks has gained bitmaps as its second hard dependency.

0.4.0

02 Sep 14:25
v0.4.0
2f5bc51
Compare
Choose a tag to compare

CHANGED

  • The 0.3.2 release increased the minimum rustc version required, which should have been a major version bump, so 0.3.2 is being yanked and re-tagged as 0.4.0.

0.3.2

29 Aug 14:55
0.3.2
529a4bd
Compare
Choose a tag to compare

ADDED

  • Chunk/bitmap sizes up to 1024 are now supported.

FIXED

  • Replaced ManuallyDrop in implementations with MaybeUninit, along with a general unsafe code cleanup. (#3)

0.3.1

29 Aug 14:11
Compare
Choose a tag to compare

ADDED

  • Chunk sizes up to 256 are now supported.

0.3.0

29 Aug 14:11
0.3.0
62ab7e7
Compare
Choose a tag to compare

ADDED

  • A new data structure, InlineArray, which is a stack allocated array matching the size of a given type, intended for optimising for the case of very small vectors.
  • Chunk has an implementation of From<InlineArray> which is considerably faster than going via iterators.

0.2.2

29 Aug 14:09
0.2.2
4505381
Compare
Choose a tag to compare

ADDED

  • Slice::get methods now return references with the lifetime of the underlying RingBuffer rather than the lifetime of the slice.

0.2.1

15 Apr 16:21
0.2.1
72e6a6a
Compare
Choose a tag to compare

ADDED

  • A lot of documentation.
  • std::io::Read implementations for Chunk<u8> and RingBuffer<u8> to match their Write implementations.

0.2.0

15 Apr 16:20
0.2.0
c0218a6
Compare
Choose a tag to compare

CHANGED

  • The capacity() method has been replacied with a CAPACITY const on each type.

ADDED

  • There is now a RingBuffer implementation, which should be nearly a drop-in replacement for SizedChunk but is always O(1) on push and cannot be dereferenced to slices (but it has a set of custom slice-like implementations to make that less of a drawback).
  • The Drain iterator for SizedChunk now implements DoubleEndedIterator.

FIXED

  • SizedChunk::drain_from_front/back will now always panic if the iterator underflows, instead of only doing it in debug mode.

0.1.3

15 Apr 16:20
0.1.3
8a37b58
Compare
Choose a tag to compare

ADDED

  • SparseChunk now has a default length of U64.
  • Chunk now has PartialEq defined for anything that can be borrowed as a slice.
  • SparseChunk<A> likewise has PartialEq defined for BTreeMap<usize, A> and HashMap<usize, A>. These are intended for debugging and aren't optimally `efficient.
  • Chunk and SparseChunk now have a new method capacity() which returns its maximum capacity (the number in the type) as a usize.
  • Added an entries() method to SparseChunk.
  • SparseChunk now has a Debug implementation.

FIXED

  • Extensive integration tests were added for Chunk and SparseChunk.
  • Chunk::clear is now very slightly faster.

0.1.2

15 Apr 16:19
0.1.2
deaba2b
Compare
Choose a tag to compare

FIXED

  • Fixed an alignment issue in Chunk::drain_from_back. (#1)