forked from systemd/systemd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Faster manager_process_barrier_fd and drop message if BARRIER=1 found
- This function is called for each message, and almost all of them will not contain BARRIER=1. So 5 comparaisons are realized in previous code. Now only one strstr is used. - If BARRIER=1 is found, drop the message in all case. So always return true when BARRIER=1 is found at the beginning of a new line Follow up of systemd#15547
- Loading branch information
1 parent
6eb35fd
commit 7a5b476
Showing
1 changed file
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters