-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jan Hlavat� wrote:
| I have noticed there are a lot of << 0 in the code. | While it may make the code a bit more readable, | I remind you it DOES generate unnecesary code in classfiles (two | instructions). | I suggest we remove it and refrain from using it in the future. | | Jan
Cloudscape has always used the jikes compiler for compilation and it optimises the << 0 away in the generated byte code. Thus as a closed source project it was an acceptable practice.
Now, I agree that since Derby is open source and javac does not seem to optimise this away, even with -O, its use should be stopped.
Note that the jar files produced by jikes are significantly smaller than those produced by javac. I think javac leaves unused string constants in the .class file, I think references to classes that were used during compilation, e.g. for bringing in static final constants.
Dan. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBNfgOIv0S4qsbfuQRAofIAKDb2lA+yd79rEvtdPApSBcd6skEpgCgn7sd Mxzjz2hu9WkGZ4WXsTSR2SI= =D0MD -----END PGP SIGNATURE-----
