summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-etc-hosts.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-19 09:50:48 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-20 15:18:28 +0200
commit3ec3ae68d2cea32461d779645a737d57160631bf (patch)
treede96287e883a1a164e308cebc8bd88ac6b302920 /src/resolve/resolved-etc-hosts.c
parentbd144c9643aedb045e0df5fc1ada2e467c802b47 (diff)
downloadsystemd-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