GWT: How to avoiding calls to dynamicCast and canCastUnsafe in generated JavaScript code?

后端 未结 5 823
醉梦人生
醉梦人生 2021-01-12 12:32

I\'m writing some special purpose data structures in Java, intended for use in the browser, (compiled to JavaScript with GWT).

I\'m trying to match the performance o

5条回答
  •  一个人的身影
    2021-01-12 13:11

    Dunno if you've seen this thread in the GWT Contributor's forum...

    Basically, it starts with the same problem you've identified, proposes some new compiler flags, and goes on to show how to use some JSNI to get around the casts.

    Edit In the GWT trunk there's a new compiler flag. See the wiki...

提交回复
热议问题