Re: Resulting class performance
Jeremy Cowgar <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
The problem was the "0" left on the stack. That caused JIT compilation
to fail but it could still be interpreted I guess. I removed the pushing
of the 0 on the stack and it flew, just like the Java version, no
difference in speed. I then made 0 assign to a variable and again, it
flew. Remove the assigning of the variable and again it took 3 seconds.
On Linux, instead of a simple Compile Fail message, I got a message
stating OSR was not empty. That gave me a clue. On windows it simply
status compile failed :-/
Anyway, all is working now. Thanks for everyone's input. Now onto bigger
fish I guess!
Jeremy
> JoslProgram dump:
>
> public class JoslProgram extends java.lang.Object{
> public JoslProgram();
> Code:
> 0: aload_0
> 1: invokespecial #8; //Method java/lang/Object."<init>":()V
> 4: return
>
> public static void main(java.lang.String[]);
> Code:
> 0: ldc #11; //int 0
> 2: ldc #12; //int 300000000
> 4: istore_1
> 5: iconst_0
> 6: istore_0
> 7: iload_1
> 8: iload_0
> 9: if_icmple 21
> 12: ldc #13; //int 1
> 14: iadd
> 15: iinc 0, 1
> 18: goto 7
> 21: return
>
> }
>
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws