Re: Idea for ECMA/C# Standard - compile time hash for performance



So...

You have an integer value and you need to get something based on that
value.

The set of integers never changes. It is always the same. The same
integer always maps to the same object.

The range of the set is very large and very sparse, so using the
integers as array indices is a non-starter. (How large is the range,
anyway, and how sparse? What is the min and max of the integer values?
How many objects are there, in the end?)

Did I miss anything?

.



Relevant Pages


Quantcast