Thursday, February 7, 2013

Re: GWT Benchmarks, Java Virtual Machine vs GWT+browser JsVM

Thanks Colin,
 I think that make sense removing cast checks and metadata in production, I have alway thought that getting cast errors in production is a good things, but it looks marginal.

I think I'll add these optimizations in the next benchmarks.
Regards

Il giorno giovedì 7 febbraio 2013 21:36:20 UTC+1, Colin Alworth ha scritto:
JavaScript doesn't have a concept of type, so all type checks are really just function calls. Both instanceof and casts need to be generated to have JavaScript behave exactly like Java. Here's a quick demonstration:

public class Test implements EntryPoint {
  public static class SomeObject {
   
  }

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment