]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: drop to use Hashmap to manage journal files per boot ID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Jan 2024 19:28:11 +0000 (04:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Feb 2024 17:42:36 +0000 (02:42 +0900)
commitcb2b0326ee375eb8de3aee4cc800596c5be84d57
treeded8b846bfd2794cb31719435e6ee12608460e45
parentf7f062bf9f194dc14a4ffc6e7fff9d8bfdea2147
sd-journal: drop to use Hashmap to manage journal files per boot ID

As reported at https://github.com/systemd/systemd/pull/30209#issuecomment-1831344431,
using hashmap in frequently called function reduces performance.
Let's replace it with a single array and bsearch.

Replaces #29366.

Co-authored-by: Costa Tsaousis <costa@netdata.cloud>
src/libsystemd/sd-journal/journal-internal.h
src/libsystemd/sd-journal/sd-journal.c