No, they aren't the same: http://code.google.com/p/google-web-toolkit/wiki/HashMapOptimization.
I didn't benchmark both, but, based on the article above, I would say its preferable to use JavascriptObject if your requirements are satisfied by it. -- D. Reinert Em quarta-feira, 15 de janeiro de 2014 16h32min41s UTC-3, HamsterofDeath escreveu: > > i would expect similar performance characteristics, since both things are > basically the same^^ > the browser might be able to apply optimizations if the mapping are known > at "compile time", but other than that..... i would either go all out and > do a lot of research, or don't care > > > 2014/1/15 Danilo Reinert <[email protected] <javascript:>> > >> What are the pros/cons of using a simple Javascript Object instead a >> HashMap for mapping purposes? Would it perform better for few items cases, >> say <10 ? >> >> -- >> D. Reinert >> >> -- >> 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] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> 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.
