Re: Array Performance

2011-10-25 Thread ihsan ciftci
I forgot to mention the for loop invariant. By test results are according to var times = document.getElementById("times").value; //Began capturing time for(i=0; i < times; ++i) { ... } I have converted it to var times = parseInt(document.getElementById("times").value); //Began capturing time

Re: Array Performance

2011-10-25 Thread ihsan ciftci
I wrote JS equivalent of my test case in 4 ways. function mgpoint1(x,y) { this.x = x; this.y = y; this.getX = function() { return this.x; } this.getY = function() { return this.y; } this.getDimension = function() { return 2; } this.setCoordinates = function(

Re: Array Performance

2011-10-24 Thread ihsan ciftci
No effect. On 24 Ekim, 19:21, Thomas Broyer wrote: > Are you compiling with -XdisableCastChecking? That might make a difference. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@goog

Array Performance

2011-10-24 Thread ihsan ciftci
Hi. My drawing operation was too slow with respect to Java. I observed the code. So I get Canvas is faster than Graphics2D with AA on. But what was that slowness? Many times, I'm creating a point object with several methods. The creation of those objects were much slower than java. I deleted th

Re: Yet another obfuscation question, but related with Java Source Code Obfuscation

2011-09-26 Thread ihsan ciftci
I forgot mentioning the condition that we are creating a library (API) not a web page. The API contains a part of an IP (the gwt-safe Java library), because of that reason it should be at least obfuscated. On Sep 26, 6:48 pm, Jeff Larsen wrote: > you could use the unobfuscated version of the pro

Yet another obfuscation question, but related with Java Source Code Obfuscation

2011-09-26 Thread ihsan ciftci
There are many topics about obfuscation, but they are about js obfuscation. I'm sure my question was asked before. But I didn't find. We have a java library which is closed source. With some effort, we modified the library as gwt-safe. The problem here is that this library should be closed source.

Gwt Emulation and Maven

2011-09-21 Thread ihsan ciftci
I'm emulating some of java.awt classes in GWT. I'm using such a scheme: 1. I'm creating a separate project for the emulation library. 2. Suppose my module is com.mylib.AWT (Think for the class com.mylib.emul.java.awt.Color) 3. I'm setting com.mylib.emul as Source folder. 4. The emul project now can

Rebind

2011-06-30 Thread ihsan ciftci
What is the purpose of com.google.user.rebind package? Are they server-side classes? I ask this because they contain references to BufferedImage. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-w

Canvas clear rectangle

2011-05-31 Thread ihsan ciftci
I think canvas should contain a method to clear entire canvas regardless of current context. The clearing approach with Integer.MIN-MAX works great on chrome,safar,opera but not ie and ff. /* * canvas.getContext2d().save(); * canvas.getContext2d().setTransform(1,0,0,1,0,0); * canvas.getContext