journalctl: don't convert between strv/Set for each log line
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jan 2023 10:35:36 +0000 (11:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jan 2023 20:46:01 +0000 (21:46 +0100)
commitc5da14cd59e51d704c0fcf1d34798198ba51a5bc
tree315ab4fde15c85d306d5ea01b8a38f1b5ff6c466
parent8ba814df255e5b65c36048355b22f757a0ccb6cb
journalctl: don't convert between strv/Set for each log line

If output fields are specified, let's store this in a Set right-away,
instead of converting between strv and Set again and again for each
line.

This is not only faster, but also simpler and shorter.
src/journal/journalctl.c
src/shared/logs-show.c
src/shared/logs-show.h