Java question: Does the following:
for(i = 0; i < JpegObj.VsampFactor[comp]; i++) {
for(j = 0; j < JpegObj.HsampFactor[comp]; j++) {
benefit at all in performance with:
int vsf = JpegObj.VsampFactor[comp];
int hsf = JpegObj.HsampFactor[comp];
for(i = 0; i < vsf; i++) {
for(j = 0; j < hsf; j++) {
Or does the Java compiler figure out that JpegObj.VsampFactor[comp] is
not changing during the loop and so only assigns it once?
Bob
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers