You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# BitArray: A simple bitarray/bit field library in pure Ruby
1
+
# BitArray: A simple bit-array/bitfield library in pure Ruby
2
2
3
-
Basic, pure Ruby bit field. Pretty fast (for what it is) and memory efficient. Works well for Bloom filters (the reason I wrote it).
3
+
Basic, pure Ruby bit field. Works well for Bloom filters (the use case for which I originally wrote it).
4
4
5
-
Written in 2007 and not updated since then, just bringing it on to GitHub by user request. It used to be called BitField and was hosted at http://snippets.dzone.com/posts/show/4234 .. I will review the code and bring the docs up to date in due course.
5
+
Originally written in 2007 and left without significant update until 2017, it has now been updated to work within a typical, modern Ruby environment while maintaining the same API.
6
6
7
7
## Installation
8
8
@@ -48,12 +48,18 @@ ba.total_set
48
48
```
49
49
50
50
## History
51
+
- 1.0 in 2017 (updated for modern Ruby, more efficient storage, and 10th birthday)
52
+
- 0.0.1 in 2012 (original v5 released on GitHub)
51
53
- v5 (added support for flags being on by default, instead of off)
52
54
- v4 (fixed bug where setting 0 bits to 0 caused a set to 1)
53
55
- v3 (supports dynamic bitwidths for array elements.. now doing 32 bit widths default)
54
56
- v2 (now uses 1 << y, rather than 2 ** y .. it's 21.8 times faster!)
55
57
- v1 (first release)
56
58
59
+
## Thanks
60
+
61
+
Thanks to Michael Slade for encouraging me to update this library on its 10th birthday and for suggesting finally using String's getbyte and setbyte methods now that we're all on 1.9+ compatible implementations.
62
+
57
63
## License
58
64
59
-
MIT licensed. Copyright 2007-2013 Peter Cooper, yada yada.
65
+
MIT licensed. Copyright 2007-2013 Peter Cooper, yada yada.
0 commit comments