stupid optimization

I replace functions call by pointers for case statement and I win 4 seconds from image 1280 x960, oversample 2, quality 500.

take a look:
1
for (j = 0; j xform[i].var[j]!=0) {

cp->xform[i].active_var_weights[totnum] = cp->xform[i].var[j];

if (j==VAR_LINEAR)
cp->xform[i].varArr[totnum] = VAR_LINEAR;
else if (j==VAR_SINUSOIDAL)
cp->xform[i].varArr[totnum] = VAR_SINUSOIDAL;
else if (j==VAR_SPHERICAL)

2

for (var_n=0; var_n xform[fn].num_active_vars; var_n++) {
//(*cp->xform[fn].varFunc[var_n])(&f, cp->xform[fn].active_var_weights[var_n]);

switch (cp->xform[fn].varArr[var_n]){

case (VAR_LINEAR):
var0_linear(&f, cp->xform[fn].active_var_weights[var_n]); break;
case (VAR_SINUSOIDAL):
var1_sinusoidal(&f, cp->xform[fn].active_var_weights[var_n]); break;
case (VAR_SPHERICAL):
var2_spherical(&f, cp->xform[fn].active_var_weights[var_n]); break;

P.S I don't know why but I can't send you diff files from this webpage. It give fout.

I send you patch from

I send you patch from michael griesman name.
I think I have trouble from restoring password to this forum.
please mail it to me.

How I can send patch?

How I can send patch?

Sorry, this patch was a

Sorry, this patch was a little fout. It was optimization's flags.

thanks, you may email your

thanks, you may email your patch to me.