I use GWT JSNI to access native JavaScript libraries.
I wonder if it makes any difference in speed which data typ I pass through JSNI.
Example 1:
public static native int test(int value) /*-{
return this.computeSomething(value);
}-*/;
Example 2:
public static native double test(double value) /*-{
return this.computeSomething(value);
}-*/;
Assume that computeSomething() takes integer values as an argument and returns an integer value.
Do I have to cast the return value as proposed here: How to work with int values in gwt jsni methods
Does it make any difference in Performance when using int or double for JSNI Functions?
Is there a way to return an int from JSNI? There seems to be a bug here: https://code.google.com/p/google-web-toolkit/issues/detail?id=2693