If you are looking for absolute optimal performance in the browser, you should use something like Lightweight Collections - your own JS arrays and only maps, and all contained objects - like JavaScriptObjects (overlay types).
However, this will greatly limit your coding efficiency, since they are not at all as easy to use as the JRE collections. No contains() , no improved for loops, none of the intricacies of Java. And in the end, the "subtleties of Java" seem to be the reason that you are programming in GWT rather than JS.
Guava does not strive to bring any special benefits to the GWT application, it basically just provides a simpler coding experience, and sometimes a tiny optimization here and there that you might not have considered. Guava is not optimized for GWT, it is just available in GWT.
So, this is for you. If you want to use regular Java collections, you must use Guava. If you want absolute maximum performance, do everything in your own collections.
source share