[ragel-users] Java static field initializers
Nate
nathan.sweet at gmail.com
Wed Apr 6 08:20:29 UTC 2011
Ragel currently outputs a method and static field for Java, eg:
private static byte[] init__tableLayout_trans_targs_0 () { return new byte[]
{...}; }
private static final byte _tableLayout_trans_targs[] =
init__tableLayout_trans_targs_0();
We could save a few bytes on class file size by just assigning the array,
without an method:
private static final byte _tableLayout_trans_targs[] = new byte[] {...};
The end result is the exactly the same, but less code needs to be output and
the class files will be a little bit smaller.
-Nate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20110406/4b112ca8/attachment-0001.html>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list