[speex-dev] Performance increase?

Chris Flerackers cflerackers at androme.be
Mon Apr 19 04:36:09 PDT 2004


I noticed that you changed all constant floating point numbers
from double notation (e.g. 3.0) to float notation (3.0f) in the latest
of Speex (in subversion).
Did that give any performance increase (because of elimination of the
float to double and double to float conversions)?

Best regards,

> When compiling in debug mode, I also get 530 warnings about double to
> float conversions. In release mode I don't get these warnings because the
> warning level is set to 1. Do these conversions impact performance? I
> it is because you use e.g. 16000.0 instead of 16000.0f but I'm wondering
> if this causes computations to be done using doubles and then converted to
> float
> instead of working with floats all the time. If 32 bit float precision is
> enough, maybe
> it is better to use .0f everywhere?
> Best regards,
> Chris

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Speex-dev mailing list