]> granicus.if.org Git - graphviz/commit
use a C99 bool array for checked in beautify_leaves
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Jun 2021 00:54:02 +0000 (17:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Jun 2021 00:06:12 +0000 (17:06 -0700)
commit6bac5daf258e413a9c4790ba13edca025710b537
tree061a3d7d1be1401369a9da4eb852030162ee886e
parenteaedc5cf667fcc505fa4c07957b833a4c8cf9508
use a C99 bool array for checked in beautify_leaves

This change not only reduces the heap usage for this function (sizeof(bool) is
typically less than sizeof(int)), but also makes both allocation and
initialization more efficient.
lib/sfdpgen/spring_electrical.c