]> granicus.if.org Git - graphviz/commit
Render_Contour2: allocate vertices as a single block
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 20:59:21 +0000 (13:59 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 Aug 2021 14:56:33 +0000 (07:56 -0700)
commit16da0d357c60e7fbad9191ad4408491610a7613a
tree9e06fe6a588dd56a5cff00c90c4ff39536caf609
parentd67c1e8d618abdc2047d505efd7ef20f22bba35d
Render_Contour2: allocate vertices as a single block

Rather than an array of pointers and then individual allocations for each
vertex, we can simply allocate a single block ahead of time. This decreases
memory requirements and increases cache locality. Note that this does nothing
about the fairly egregious memory leak in this code.
cmd/smyrna/polytess.c