From: Carl Worth Date: Thu, 31 May 2007 19:15:02 +0000 (-0700) Subject: Protect underscores in function_names to prevent them being interpreted as italics... X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=782c6ee4478830d20e862e26ec96a357cf46b6cf;p=cworth.org Protect underscores in function_names to prevent them being interpreted as italics markdown --- diff --git a/src/exa/understanding_rectangles.mdwn b/src/exa/understanding_rectangles.mdwn index 8c92fc4..d640840 100644 --- a/src/exa/understanding_rectangles.mdwn +++ b/src/exa/understanding_rectangles.mdwn @@ -54,13 +54,13 @@ cairo-based rectangles test case looked about like this: } That is, each rectangle was being filled individually. I experimented -with changing this so that many calls were made to cairo_rectangle for -each call to cairo_fill. The mysterious EXA slowdown I had been +with changing this so that many calls were made to `cairo_rectangle` for +each call to `cairo_fill`. The mysterious EXA slowdown I had been chasing went away, but only because everything became a lot slower. It turns out there's a bad performance bug in cairo when it converts from -a list of rectangular trapezoids to a pixman_region. Cairo's pixman +a list of rectangular trapezoids to a `pixman_region`. Cairo's pixman doesn't expose a function for "create region from list of rectangles" -so cairo is calling a pixman_region_union function once for every +so cairo is calling a `pixman_region_union` function once for every rectangle. This looks like an unnecessary O(n**2) algorithm to me. Fortunately that should be a simple thing to fix.