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 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