chiark / gitweb /
sd-event: don't provide priority stability
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 18:56:17 +0000 (20:56 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 29 Mar 2017 08:45:10 +0000 (10:45 +0200)
commit1d883c59d17d938fc4307be44e5f654bd62fdeb3
treeb9a76f876e04505a470c60b7db64679270c33f32
parent6ae2e4fb95252c321735cc829d350c90ba62d08a
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/libelogind/sd-event/sd-event.c