Hi,
I am planning on using Redis for a fast index using the sorted set datatype, and I have been reading up on the topic, especially using the
I have a question about using the numbers in binary form to save memory, described about halfway down the page. I am new in big endian, and
byte representation of decimal numbers, and have googled myself to insanity :)
I want to store bigdecimals in the sorted set, with the same score, so i can use lexrange features. It mentions that one can use
big endian format for saming memory, but with the cost of easy debugging. Do any of you have an example (ruby or js preferably)
on how to convert numbers (floats) in decimal to this byte format, and back again, or point me to an article that explains this for
a newbie in this area.
Thanks