]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: don't provide priority stability 1407/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 18:56:17 +0000 (20:56 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 18:56:17 +0000 (20:56 +0200)
commit6fe869c251790a0e3cef5b243169dda363723f49
treee2793e54df1c835a1ce1984fffed3eda1b43bd9c
parent8a9d23e4462aa19a17a3de463ff8e408656057af
sd-event: don't provide priority stability

Currently, we guarantee that if two event-sources with the same priority
fire at the same time, they're always dispatched in the same order. While
this might sound nice in theory, there's is little benefit in providing
stability on that level. We have no control over the order the events are
reported, hence, we cannot guarantee that we get notified about both at
the same time.

By dropping the stability guarantee, we loose roughly 10% Heap swaps in
the prioq on a desktop cold-boot. Krzysztof Kotlenga even reported up to
20% on his tests. This sounds worth optimizing, so drop the stability
guarantee.
src/libsystemd/sd-event/sd-event.c