(In reply to comment #62)
Created an attachment (id=40061) [details]
improved patch
Had another look and tidied the code a bit removing repeated page orientation
checks, and a redundant test for overlap in rule(2). This is noticeably faster
rendering the bus map. (down to ~14.8s)
I tested
(In reply to comment #65)
Created an attachment (id=40124) [details]
patch without extraneous whitespace changes
Oops! Ok, here's the patch without the whitespace changes.
Tested with the new whitespace patch - renders the map PDFs much faster
in cairo, other PDFs aven't changed much.
--