python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
redis async replication of a bitset
I am using redis to store some pretty large bitsets. Redis is run in master/slave sentinel mode.
I got curious about the replication performance for very big bitsets (my bitset has a size of +-100Kbyt...
mirk
Votes: 0
Answers: 1
How to convert BitSet -> short array with 4 bit precision?
I want to convert the BitSet data of variable length to an array of shorts.
BitSet -> short[]
Every four bits of the bitset should be used to construct a new number.
Example data:
BitSet bits = new...

Jotschi
Votes: 0
Answers: 1
How to convert short array to BitSet with 2 bit precision in Java?
I have a short array {0,2,3,1,…} which I would like to convert to a BitSet.
Expected bits in bitset: 00 10 11 01 …
Every two bit in the bitset should represent a short. (2-bit precision)
This should w...

Jotschi
Votes: 0
Answers: 2
Print out bitset quickly in c++
Im writing a program that outputs binary, and I got alot of it I want to output to the terminal, but this takes along time.
In other places in my program where I want to quickly output strings I use
_...

J. Doe
Votes: 0
Answers: 2