Re: Optimisation of obfuscated mode

2011-11-24 Thread luke
There's an even simpler example of the same optmisiation question. In compiled obfuscated code, I'm seeing lots of functions that do exactly nothing. e.g. : function Id(){} function Od(){} function Hd(){} function Qd(){} ... etc Why are these here at all? Surely they could be optimised away

Re: Optimisation of obfuscated mode

2009-05-06 Thread Elias Martenson
On May 6, 10:18 am, X a.revolution.ultra.b...@gmail.com wrote: public interface Bax{     public String getValue();} public class Bar implements Bax{     String size;     public String getValue(){return size;} } public class Foo implements Ba...  OH WAIT!! You have one class returning

Re: Optimisation of obfuscated mode

2009-05-06 Thread Alyxandor
This is true, I was thinking of this later, and saw that in many cases, this COULD be done, And it can be done outside of the gwt compiler, if you like. Some fancy regexp to find functions with EXACT method bodies and renaming+deletion could potentially decrease file sizes dramatically, but

Re: Optimisation of obfuscated mode

2009-05-06 Thread Elias Martenson
Ah, that's not a bad idea actually. Using a regex that is… I might actually try that. I haven't actually looked at the compiler source yet, but I think I'll do that tomorrow. I'll update if I come up with anything. On 6 Maj, 22:00, Alyxandor a.revolution.ultra.b...@gmail.com wrote: This is

Optimisation of obfuscated mode

2009-05-05 Thread Elias Martenson
When looking at the generated Javascript code in obfuscated mode, I can see a lot of functions that, after obfuscation, has become identical to eachother. For example, here is a real example from my application: function yLc(a,b,g,f,e,c,d){return 0} function zLc(a,b,g,f,e,c,d){return 0}

Re: Optimisation of obfuscated mode

2009-05-05 Thread Salvador Diaz
I'm curious about this, could you compile in pretty or detailed and show us this duplicate functions ? Thanks, Salvador On May 5, 9:50 am, Elias Martenson loke...@gmail.com wrote: When looking at the generated Javascript code in obfuscated mode, I can see a lot of functions that, after

Re: Optimisation of obfuscated mode

2009-05-05 Thread Elias Martenson
On May 5, 4:19 pm, Salvador Diaz diaz.salva...@gmail.com wrote: I'm curious about this, could you compile in pretty or detailed and show us this duplicate functions ? I think that would be hard, since it's quite difficult to map a function to the actual method when looking at the obfuscated

Re: Optimisation of obfuscated mode

2009-05-05 Thread X
public interface Bax{ public String getValue(); } public class Bar implements Bax{ String size; public String getValue(){return size;} } public class Foo implements Ba... OH WAIT!! You have one class returning String, and another returning int. I was going to say you need to use

Re: Optimisation of obfuscated mode

2009-05-05 Thread X
public interface Bax{ public String getValue(); } public class Bar implements Bax{ String size; public String getValue(){return size;} } public class Foo implements Ba... OH WAIT!! You have one class returning String, and another returning int. I was going to say you need to use