Hi, Longs are emulated with 2 doubles. Which is slow, but it should support the full range.
If you are only using them for ID's then you better send them over as strings or something else because Long emulation is slow and can sometimes slow down RPC operations. David On Wed, Jun 26, 2013 at 5:25 PM, Carl Roach <[email protected]> wrote: > Why not use Strings in that use case? > > > On 26 June 2013 16:16, Sebastien Diot <[email protected]> wrote: > >> On Wednesday, June 26, 2013 4:55:19 PM UTC+2, Carl wrote: >>> >>> wrt numbers in JavaScript... >>> >>> All numbers in JavaScript are stored as 64-bit (8-bytes) base 10, >>> floating point numbers. This will probably provide enough space for your >>> IDs. >>> >> >> This is only true if you assume my IDs start with 0/1, and slowly grow. I >> also use Java longs to store 64-bit MurmurHash of Strings (class names, >> ...), which cover the whole "bit range" of a long. This has the great >> advantage that it allows things that would otherwise be "variable size" to >> then be "fixed size" when serialized.* >> * >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Web Toolkit" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-web-toolkit/gC76hol4ZIo/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-web-toolkit. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
