gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Optimization to jpeg decoding


From: dolphinling
Subject: Re: [Gnash-dev] Optimization to jpeg decoding
Date: Thu, 27 Nov 2008 02:48:48 -0500
User-agent: Thunderbird 2.0.0.18 (X11/20081105)

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/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]