Timothy J. Wood
2000-Nov-26 13:49 UTC
[vorbis-dev] Trivial 12% performance gain in encoding
(well, YMMV, but it got me 12% on Mac OS X Public Beta on my test case). In vorbis/lib/scales.h, add the following after fromdB() #define sqrt_fromdB(x) (exp((x)*.11512925*0.5)) In vorbis/lib/psy.c at the bottom of bark_noise(), do: < noise[i]=sqrt(fromdB(v));> noise[i]=sqrt_fromdB(v);This avoids the sqrt() call entirely by just doing it as part of the exp(). (I'd send a patch, but my local source tree is severely mauled with timing instrumentation code :) -tim --- >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 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
on 11/26/2000 13:49, Timothy J. Wood at tjw@omnigroup.com wrote:> (well, YMMV, but it got me 12% on Mac OS X Public Beta on my test case).Hi Tim. I see you're working on Vorbis & Mac OS X again. I'm that "other guy" who tweaked your patches a bit. I noticed a few people grab them from the web site, but as you noted, I couldn't get anyone to commit them. Let me know if there's anything you'd like me to do -- even if it's just do a test build on another OS X system. Seems like you're making some pretty terrific progress. -- Richard +-------------------------+ | Richard Kiss | | 140 Locksunart Way #8 | | Sunnyvale, CA, 94087 | | richard@homemail.com | | http://www.ogopogo.net/ | +-------------------------+ --- >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 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.