diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-19 09:50:48 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-20 15:18:28 +0200 |
commit | 3ec3ae68d2cea32461d779645a737d57160631bf (patch) | |
tree | de96287e883a1a164e308cebc8bd88ac6b302920 /src/resolve/resolved-etc-hosts.c | |
parent | bd144c9643aedb045e0df5fc1ada2e467c802b47 (diff) | |
download | systemd-3ec3ae68d2cea32461d779645a737d57160631bf.tar.gz |
basic/strv: add optimizable version of strv_push/consume/extend
This will be helpful in cases where we are repeatedly adding entries
to a long strv and want to skip the iteration over old entries leading
to quadratic behaviour.
Note that we don't want to calculate the length if not necessary, so
the calculation is delayed until after we've checked that value is not
NULL.
Diffstat (limited to 'src/resolve/resolved-etc-hosts.c')
0 files changed, 0 insertions, 0 deletions