strk wrote:
On Wed, Nov 26, 2008 at 08:32:03PM -0500, dolphinling wrote:
boost::scoped_array<unsigned char>::operator[] is called nearly 25 million times from readSWFJpeg3, for 5.67% of the run time, but I don't see a trivial way to eliminate those calls like with getWidth.

I tought that operator would be inlined ? Are you building with inlines
turned off by any chance ?

Looks like it was because it was a debug build. I thought gcc kept optimizations in debug by default, I guess you need to tell it to. In a non-debug build, that doesn't show in the profiler (and getWidth is up to 2.64% of the runtime).

--
dolphinling
<http://dolphinling.net/>


_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to