|
|
Tor Olav Kristensen wrote:
>
> (from megasrc07.zip)
>
> I have just had a little peek into that c-file
> and found that it might be possible to do some
> simplifications of the code within it.
>
[SNIP]
> This introduces one extra local variable; omc,
> but I hope there will be a little speed gain anyway.
Do you have any idea WHEN Compute_Axis_Rotation_Transform is called ?
And how many time ?
My current guess is (because I did not check yet,
only performing from memory of the code):
- At parse time only.
- once per invoking directive.
If you were trying to get some significant speed improvement, I'm afraid
you will be disappointed: it's in the wrong location, at the wrong time.
P.S.: If I am wrong, do not hesitate: Open fire... I will apologise later.
P.S.2: Smart compiler may already have factored
the (1 - cosx) result in a register, so forcing to use a named variable
might even be counter productive (because it must be written to the memory
location, for nothing).
Post a reply to this message
|
|