Anh <a...@pacbell.net> wrote on 11/02/2011 06:02:54 PM:
>
> Hi,
> in this AES code, I used Array[Array] instead of 2D array region.
> And I only time computation, and the performance on Java is much
> faster than X10 (Java-backend).
>

Taking a quick look at the code, most of the Array's have static types
like:

Array[Byte](1)

This masks the fact that the Array is rect & zeroBased, so statically we
can't use the most optimized array access.  You instead nend to say Array
[Byte](1){rect,zeroBased}.  This is kind of annoying to type, so we have a
typedef you can use instead: Rail[Byte].  I'd suggest changing that
throughout the code and then looking at the performance again.

Also, be sure to compile the x10 program with -O  (this activates the
inliner and really helps Array-based code).

--dave
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to