Commit 07bf0cc9 authored by Mike Melanson's avatar Mike Melanson

clarify previous revision on optimization justification

Originally committed as revision 11598 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ac59e7f4
...@@ -30,15 +30,15 @@ NOTE: If you still don't understand some function, ask at our mailing list!!! ...@@ -30,15 +30,15 @@ NOTE: If you still don't understand some function, ask at our mailing list!!!
When is an optimization justified? When is an optimization justified?
---------------------------------- ----------------------------------
Normally, clean & simple optimizations on widely used codecs can achieve Normally, clean and simple optimizations for widely used codecs are
an overall speedup of 0.1%. These speedups accumulate and can make a big justified even if they only achieve an overall speedup of 0.1%. These
difference after awhile. Also, if none of the following factors get speedups accumulate and can make a big difference after awhile. Also, if
worse due to an optimization -- speed, binary code size, source size, none of the following factors get worse due to an optimization -- speed,
source readability -- and at least one factor improves, then an binary code size, source size, source readability -- and at least one
optimization is always a good idea even if the overall gain is less than factor improves, then an optimization is always a good idea even if the
0.1%. For obscure codecs that are not often used, the goal is more overall gain is less than 0.1%. For obscure codecs that are not often
toward keeping the code clean, small, and readable than to make it 1% used, the goal is more toward keeping the code clean, small, and
faster. readable instead of making it 1% faster.
WTF is that function good for ....: WTF is that function good for ....:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment