diff --git a/bitvec-1.1.4.0.tar.gz b/bitvec-1.1.4.0.tar.gz deleted file mode 100644 index f03ceb2..0000000 --- a/bitvec-1.1.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68f0b1e01604ca8bdeaef47b3621faec456d6f76d6820a321eccd4d3749454a8 -size 35559 diff --git a/bitvec-1.1.5.0.tar.gz b/bitvec-1.1.5.0.tar.gz new file mode 100644 index 0000000..960f6f6 --- /dev/null +++ b/bitvec-1.1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83d27cee5be1d5342ddbf39999d0c8ea54cb433d0891eea5471fbfaa29f8dec5 +size 40076 diff --git a/ghc-bitvec.changes b/ghc-bitvec.changes index 38577c7..90625e8 100644 --- a/ghc-bitvec.changes +++ b/ghc-bitvec.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Aug 15 20:29:27 UTC 2023 - Peter Simons + +- Update bitvec to version 1.1.5.0. + # 1.1.5.0 + + * Make `zipBits` unconditionally strict in its second bit + vector argument (thanks to @treeowl). + + * Add `simd` flag (enabled by default) to use a C SIMD + implementation for `zipBits`, `invertBits`, `countBits`, + `bitIndex`, `nthBitIndex`, `selectBits`, `excludeBits`, + `reverseBits` (thanks to @konsumlamm). + + * Decomission `libgmp` flag. + ------------------------------------------------------------------- Thu Mar 30 17:05:59 UTC 2023 - Peter Simons diff --git a/ghc-bitvec.spec b/ghc-bitvec.spec index afc0ea1..733a4a5 100644 --- a/ghc-bitvec.spec +++ b/ghc-bitvec.spec @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.1.4.0 +Version: 1.1.5.0 Release: 0 Summary: Space-efficient bit vectors License: BSD-3-Clause @@ -52,7 +52,7 @@ BuildRequires: ghc-tasty-quickcheck-prof %description A newtype over 'Bool' with a better 'Vector' instance: 8x less memory, up to -1000x faster. +3500x faster. The package represents unboxed arrays of 'Bool's spending 1 byte (8 bits) per boolean. This library @@ -60,14 +60,19 @@ provides a newtype wrapper 'Bit' and a custom instance of an unboxed 'Vector', which packs bits densely, achieving an __8x smaller memory footprint.__ The performance stays mostly the same; the most significant degradation happens for random writes (up to 10% slower). On the other hand, for certain bulk bit -operations 'Vector' 'Bit' is up to 1000x faster than 'Vector' 'Bool'. +operations 'Vector' 'Bit' is up to 3500x faster than 'Vector' 'Bool'. === Thread safety -* "Data.Bit" is faster, but writes and flips are thread-unsafe. This is because -naive updates are not atomic: they read the whole word from memory, then modify -a bit, then write the whole word back. * "Data.Bit.ThreadSafe" is slower -(usually 10-20%), but writes and flips are thread-safe. +* "Data.Bit" is faster, but writes and flips are not thread-safe. This is +because naive updates are not atomic: they read the whole word from memory, +then modify a bit, then write the whole word back. Concurrently modifying +non-intersecting slices of the same underlying array may also lead to +unexpected results, since they can share a word in memory. * +"Data.Bit.ThreadSafe" is slower (usually 10-20%), but writes and flips are +thread-safe. Additionally, concurrently modifying non-intersecting slices of +the same underlying array works as expected. However, operations that affect +multiple elements are not guaranteed to be atomic. === Similar packages