<div class="gmail_quote">On 19 March 2012 20:27, Chris Wilson <span dir="ltr">&lt;<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
</div>Thanks. So it appears the bulk of your rendering is in the form of lots<br>
of tiny stroked rectangles, correct?<br>
<br></blockquote><div><br><span style="color:rgb(0,0,153)">Yes, this is it; most of the objects I draw on the map are small stroked rectangles.</span><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

stroke: count 255357 [no-op 0], elapsed 1112598240 [97.4%]<br>
  extents: total 5843148, avg 22.882 [unbounded 0]<br>
  op: 255357 OVER<br>
  source: 255357 solid<br>
  path: 255351 rectliinear, 6 straight<br>
  antialias: 255357 default<br>
  caps: 255357 butt<br>
  joins: 255357 miter<br>
  clip: 255306 none, 51 region<br>
<br>
The truly puzzling part for me is that they seem viable candidates to<br>
hit the fast-paths, yet end up in the general polygon code.<br><br>
</blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&lt;&lt; /content //COLOR_ALPHA /width 500 /height 500 &gt;&gt; surface context<br>
n 22.726562 22.726562 454.546875 454.546875 rectangle<br>
0 0.65 1 rgb set-source<br>
0.295602 0.913843 scale<br>
3.655372 set-line-width<br>
stroke+<br>
pop<br>
<br>
Oh, I see. A non-uniform, non-integer scale factor. That would explain<br>
it. Let&#39;s see if I can cook up something faster for you.<br></blockquote><div><br><span style="color:rgb(0,0,153)">I can round the scaling factor for the </span><span style="font-family:courier new,monospace;color:rgb(0,0,153)">cairo_scale()</span><span style="color:rgb(0,0,153)"> function call; would that make a big performance difference? </span><br style="color:rgb(0,0,153)">
</div></div><br style="color:rgb(0,0,153)"><span style="color:rgb(0,0,153)">Thanks for looking into this,</span><br style="color:rgb(0,0,153)"><br style="color:rgb(0,0,153)"><span style="color:rgb(0,0,153)">Christos.</span><br clear="all">
<br>-- <br>--------------------------------------------------------------------------<br>Christos P. Sotiriou<br>email: <a href="mailto:csotiriou@gmail.com">csotiriou@gmail.com</a><br>Cell: +30 697 8984 222<br>