Hi,

  In my _cljs_ code, I need to generate keys by:

  * randomly generating a 256/512/1024-bit object
  * testing that it hasn't been used before (and if it's already used,
pick another random value)

  The only use of these ids is as keys to a map. Thus, I would like to
have efficient tests for (1) equality and (2) comparison and (3)
possibly hashing.

  Now, my question is: what is the optimal format for these keys? (not
generate -- which I can do via some prg)

  Should I be using a string, an array of integers, or ... ?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to