Thanks for the info.

Maybe with GWT 3 since many things will break, it is a good idea to map
float[] to Float32Array, double[] to Float64Array etc...

But even more than that I would love a java.lang.String to js.String direct
mapping first. I don't know if this is even possible but hey it's almost
Christmas!

   Vassilis

On Wed, Dec 18, 2019 at 11:43 AM Kirill Prazdnikov <[email protected]>
wrote:

> So
>>
>>    - Arrays, double are mapped to native types.
>>
>>
> Not really, for float[] or for double[] there is
> corresponding Float32Array and Float64Array, or Int32Array for int[].
>
> But the GWT uses JsArray of JsObjects and use JsNumber (boxed double) for
> any primitive types.
> As result, any generic multiplatform algorithm using arrays is extremely
> memory and performance *inefficient.*
>
> Other java->js compilers offer more correct solution.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/52d9465a-bbd5-496c-bfa3-e3e59a18e9d4%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit/52d9465a-bbd5-496c-bfa3-e3e59a18e9d4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEwPk4j%2Bx8JcQjY2PJCyHp3bMZg2ExG0ypE0uKKN1%3Dnetw%40mail.gmail.com.

Reply via email to