2 ms·
From the summary: > If your data is strictly sequential; you should use a regular array. If your data is often sequential, or approximately sequential (e.g. an
by irq-1 7y ago
From the summary:
> If your data is strictly sequential; you should use a regular array. If your data is often sequential, or approximately sequential (e.g. an arithmetic sequence stepping by 64), Judy might be the best data structure to use. If you need to keep space to a minimum--you have a huge number of associative arrays, or you're only storing very small values, Judy is probably a good idea. If you need an sorted iterator, go with Judy. Otherwise, a hash table may be just as effective, possibly faster, and much simpler.