[cairo] On _cairo_path_buf_fixed

Chris Wilson chris at chris-wilson.co.uk
Fri May 9 23:09:03 PDT 2008


On Fri, 2008-05-09 at 22:55 +0200, Behdad Esfahbod wrote:
> Chris,
> 
> In the following struct:
> 
> typedef struct _cairo_path_buf_fixed {
>     cairo_path_buf_t base;
> 
>     cairo_path_op_t op[CAIRO_PATH_BUF_SIZE];
>     cairo_point_t points[2 * CAIRO_PATH_BUF_SIZE];
> } cairo_path_buf_fixed_t;
> 
> Any reason to have the points array twice longer than the ops? 

Only that when I measured the relative frequency for heavy path
constructors (those actually needed more than the embedded buf) it was
close to 2.
Hmm, YMMV, so I should start putting my benchmarks online.
-- 
Chris Wilson



More information about the cairo mailing list