refactor(signal-util,time-util): trivial cleanups for signal table and usleep_safe#68
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot TAG: 255.2-4deepin37 |
|
这个PR有两个commit 你只拉取了一个 |
|
上游PR是systemd/systemd#30531 |
|
你的changelog的时间错了 改个正确的时间。 |
…d usleep_safe Align the static_signal_table[] array elements by adding whitespace to make the assignment operators line up vertically. Make usleep_safe() return immediately if the requested delay is zero, avoiding an unnecessary clock_nanosleep() syscall. Changes: - Add debian/patches/refactor-signal-time-util-trivial-cleanups.patch - Remove debian/patches/fix-signal-util-align-table.patch - Modify debian/patches/series - Modify debian/changelog Upstream: systemd/systemd#30531 Generated-By: glm-5-turbo Co-Authored-By: deepin-ci-robot <packages@deepin.org>
70e7564 to
efc2eee
Compare
|
对系统的实际提升: 1:(usleep_safe 提前返回) 减少一次 clock_nanosleep() 系统调用(用户态→内核态切换约需数百纳秒) 对运行时无任何提升,编译后产物完全相同。 总体来说,这修改属于低风险、小收益的改进—— 有实际(但微小)的性能意义, 纯粹是维护性改善。真正的系统级提升来自在极端情况下(大量定时器触发、批量进程管理)减少的无效系统调用积累。 |
Summary
Trivial cleanups from upstream: align signal table formatting and optimize usleep_safe() to return immediately for zero delay.
static_signal_table[]array elements by adding whitespace to make the assignment operators line up vertically.usleep_safe()return immediately if the requested delay is zero, avoiding an unnecessaryclock_nanosleep()syscall.Changes
Upstream
Generated-By: glm-5-turbo
Co-Authored-By: deepin-ci-robot packages@deepin.org