diff options
author | Rob Landley <rob@landley.net> | 2019-05-04 18:22:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-05-04 18:22:51 -0500 |
commit | 9f781cd5c3f7b071a3d9a62bf0a4aeb8c3cda8ec (patch) | |
tree | 2961c963afd068ec959ae60c449a1cce5808aead /toys/example/hostid.c | |
parent | 121322285aa143a748fb7c725a5e2559a038eefd (diff) | |
download | toybox-9f781cd5c3f7b071a3d9a62bf0a4aeb8c3cda8ec.tar.gz |
Optimize s//g to avoid fresh strdup/free of entire line for each match.
Instead have one target string and fill it out from start to finish writing
to each location once.
Diffstat (limited to 'toys/example/hostid.c')
0 files changed, 0 insertions, 0 deletions