[Sugar-devel] [Dextrose] [PATCH v5 sugar] Pulsing icon delayed by 5 seconds or so SL#2080

Martin Langhoff martin.langhoff at gmail.com
Fri Oct 29 17:51:35 EDT 2010

On Thu, Oct 28, 2010 at 1:42 PM, Martin Dengler
<martin at martindengler.com> wrote:
> There is a better way: use cProfile and gprof2dot.py.  You will get
> graphs (and of course the raw data) like this:
> http://www.martindengler.com/tmp/sl.o-2080/pulsingicon.py-stats-graph.png

Excellent graph.

But following this conversation... I think we are looking at the
problem slightly wrong.

The same (potentially complex) SVG is being rendered in 2 tones, many
times. This is nonsense.

Render it once to a B/W grayscale raster. Then use/abuse whatever
cairo bitblit blend operators.

And yes, of course, cache that grayscale rasterized version in the fs :-)

Maybe I am making wild assumptions about the bitblt ops you have available...

 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

More information about the Sugar-devel mailing list