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
_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to