summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_qualifier.i
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2023-05-15 16:12:21 +1200
committerOlly Betts <olly@survex.com>2023-05-15 16:19:17 +1200
commit8a9628e2b900a4f62b52ab339ba35f50fedd1fd8 (patch)
tree95876839d875c2bedb8144dfda5a972df2757d73 /Examples/test-suite/template_qualifier.i
parent10ca0edddb77e1a1a78e073b636af8d1f89eac41 (diff)
downloadswig-8a9628e2b900a4f62b52ab339ba35f50fedd1fd8.tar.gz
Use strchr/Strchr for single character searches
This can be more efficient than using strstr/Strstr with a single character search string. GCC is able to optimise strstr() with a single character literal search string to strchr(), but clang doesn't, and likely no compiler can for Strstr() (unless some sort of inter-object optimisation such as LTO is used) since the literal string is in a different source file to the strstr() call.
Diffstat (limited to 'Examples/test-suite/template_qualifier.i')
0 files changed, 0 insertions, 0 deletions