5 ms·
It's the smart thing to do - 4.3 billion is not that much. I had some students that asked me if even a long would be enough to handle exponential growth, after
by hvidgaard 9y ago
It's the smart thing to do - 4.3 billion is not that much.
I had some students that asked me if even a long would be enough to handle exponential growth, after all it's only twice as big. As a thought experiement I asked them to come up with a time to fill a 32 bit int completely. They came up with roughly a year. Then as a margin of error I said, let's assume you have 4.3 billion transactions every second instead. This volume can be sustained for 100 years, and we're still not in the danger zone yet.
- ReverseCold 9y ago2^64-1 is a lot more than 2 times 2^32-1
- hvidgaard 9y ago2 times 32 bits equals 64 bits...
- pc86 9y agoUh it's not twice as big. 2^32 ~ 4,294,967,000 2^64 ~ 18,446,700,000,000,000,000
- hvidgaard 9y agoOne is 32 bits, the other is 64 bits. It occupies exactly twice as much space. It can contain far more information, but it is only twice as big on the harddrive.