]> granicus.if.org Git - graphviz/commit
replace 1-byte strstr calls with strchr
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 16 Jul 2021 03:44:04 +0000 (20:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Jul 2021 20:53:56 +0000 (13:53 -0700)
commit38c3d26191db8479943d08e1e646190c97a02792
tree05c5ef5bd0202988047b956ab11705323c699a66
parent972531a3e0ba8ed90261ebcdfa3e772ab3803f77
replace 1-byte strstr calls with strchr

This change has no effect on functionality, but strchr is cheaper to call and
equivalent to these strstr calls. This likely makes no difference in an
optimized build as modern compilers can see this transformation is possible
themselves. However, this change may assist older compilers or accelerate
unoptimized builds.
lib/edgepaint/edge_distinct_coloring.c
lib/edgepaint/lab.c
lib/gvc/gvrender.c
plugin/gd/gvrender_gd.c
plugin/gd/gvtextlayout_gd.c