Good points! I'll keep this in mind!

Thanks again

On Sat, 17 Dec 2016 at 11:32, Damian Gryski <dgry...@gmail.com> wrote:

> This ends up being only half a megabyte of memory (65536 x 8 byte
> pointers) for the array-based solution.
>
>
>
> You can always write your own hash table, or convert your uint16 key to a
> uint32 for lookup purposes.  (I've done the same thing with floats to speed
> up a float64-keyed hash table.)
>
>
>
> Damian
>
>
>
> --
>
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/1iSmPQ6vrl0/unsubscribe.
>
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to