diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-29 17:33:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-29 17:35:32 +0200 |
commit | 454f0f8680ebbded135e8575b4d9615b427fdf76 (patch) | |
tree | 1001934d129716b22fbab80554ce7da2df4a8929 /src/core/load-fragment.c | |
parent | 934e749e18bc0641a3dc8d83c4f16a2ba4c8d966 (diff) |
hashmap: optimize set_put_strdup() a bit
Hashing should be quicker than allocating, hence let's first check if the
string already exists and only then allocate a new copy for it.
Diffstat (limited to 'src/core/load-fragment.c')
0 files changed, 0 insertions, 0 deletions