Re:65535 interfaces ought to be enough for anybody
by to3m on Tuesday February 14, 2017 @10:53AM
(#13644366)
Assuming you managed to accumulate enough items to fill a 64-bit counter, if you got 1 core of your super-fast PC to increment a 64-bit value for each one, it would take over 100 years to count them all. (Assuming you don't just decide to pop -1 in the counter. Presumably you'd want to make sure you haven't miscounted during the accumulation phase.)
Re:65535 interfaces ought to be enough for anybody
by flashmozzg on Tuesday February 14, 2017 @01:37PM
(#13645907)
Well, for counts 16 bits is enough, unless you count something really small, like every individual byte in something.
And for counts 32 bits should be enough, since it's 4 billion.
someone somewhere 20 years ago.
Re:65535 interfaces ought to be enough for anybody
by duskwuff on Tuesday February 14, 2017 @11:34AM
(#13644734)
For counts of things you have in memory, 32 bits is usually enough -- even if each thing is just 8 bytes, 2^32 of those objects would require 32 GB.
Re:65535 interfaces ought to be enough for anybody
by jandrese on Tuesday February 14, 2017 @12:45PM
(#13645419)
32GB isn't an exceptional amount of memory these days.
Re:65535 interfaces ought to be enough for anybody
by duskwuff on Tuesday February 14, 2017 @05:54PM
(#13648076)
Sure -- but it is an exceptional amount of memory to use for tiny objects like those. If you're working with four billion objects at a time, they're probably more substantial than eight bytes.
Re:65535 interfaces ought to be enough for anybody
by detaro on Wednesday February 15, 2017 @12:07AM
(#13649857)
Or you spent a lot of effort to get them to 8 bytes or even smaller, to fit as many of them as possible in memory. See use-cases like time-series/analytics databases, point-clouds, simulations with many elements...
Re:65535 interfaces ought to be enough for anybody
by paulddraper on Tuesday February 14, 2017 @11:11PM
(#13649620)
You mean 4GB.
And yes, 32-bit programs can't use more then 4GB.
And for counts 64 bits should be enough, since it's 20 billion billion.