coreutils/util
Jan Scheer 75edeea5e4
tail: reduce CPU load for polling (#3618)
* tail: reduce CPU load for polling

This reduces the CPU load for polling drastically (from ~80% down to ~5%)
by removing/fixing several previous workarounds related to polling,
while still passing all related GNU test-suite checks.
* set Notify::PollWatcher delay to: sleep_sec/10 instead of
  sleep_sec/100
* set recv_timeout to sleep_sec instead of sleep_sec/100
* remove the manual polling of watched files

Bugs:
* fix an issue with headers to consistently pass
"test_follow_name_retry_headers" and "gnu/tests/tail-2/overlay-headers.sh"

Code clean-up and refactor
* make fields of struct FileHandling private (and add getters/setters)
to ensure that the paths are absolute and match the paths returned by
Notify::Events
* replace calls to "crash!" with "return USimpleError"
* clean-up formatting
2022-06-21 22:21:19 +02:00
..
android-commands.sh Add missing \# interpreter line 2022-05-10 13:49:52 +02:00
build-code_coverage.BAT maint/dev ~ improve code coverage scripting 2020-08-16 17:02:19 -05:00
build-code_coverage.sh maint/refactor ~ (util) minor refactoring of util shell scripts 2022-02-12 15:26:59 -06:00
build-gnu.sh tail: reduce CPU load for polling (#3618) 2022-06-21 22:21:19 +02:00
compare_gnu_result.py maint/CICD ~ (GnuTests) support local bespoke repo default branch 2022-03-31 23:39:11 +02:00
dwr.sh maint/util ~ add dwr (for interactive removal of workflow runs from CLI) 2022-02-12 15:26:59 -06:00
GHA-delete-GNU-workflow-logs.sh maint/refactor ~ (util) minor refactoring of util shell scripts 2022-02-12 15:26:59 -06:00
gnu-json-result.py docs: add page with test coverage 2022-02-13 23:14:13 +01:00
publish.sh maint/polish ~ (util) shfmt -w -i=4 -ci 2022-02-12 15:26:59 -06:00
remaining-gnu-error.py remaining-gnu-error.py: add missing slash 2022-04-06 11:03:27 +02:00
rewrite_rules.rs refactor ~ (utils) fix spelling + add spell-checker exceptions 2021-05-31 08:23:58 -05:00
run-gnu-test.sh docs ~ (GnuTests) add reference and notes re GNU coreutils testing processes 2022-03-31 23:32:00 +02:00
show-code_coverage.BAT maint/dev ~ improve code coverage scripting 2020-08-16 17:02:19 -05:00
show-code_coverage.sh maint/refactor ~ (util) minor refactoring of util shell scripts 2022-02-12 15:26:59 -06:00
show-utils.BAT build/dev ~ change show-utils; allow invokation from directories other than repo main 2020-05-30 22:14:46 -05:00
show-utils.sh maint/polish ~ (util) shfmt -w -i=4 -ci 2022-02-12 15:26:59 -06:00
test-repo-whitespace.BAT maint/dev ~ update test-repo-whitespace.BAT dev utility 2022-01-09 21:34:22 -06:00
update-version.sh Version 0.0.14 (#3553) 2022-05-22 19:57:19 +02:00