Commit 4aa0fb3
committed
perf: optimize XSettings1 startup by removing Before constraint and skipping redundant init
Remove the Before=org.dde.session.Daemon1.service ordering constraint so
XSettings1 and dde-session-daemon can start in parallel. On subsequent
boots where the scale factor is already persisted in DConfig, skip the
expensive RandR monitor enumeration, Plymouth scaling, and Greeter Qt
theme update — saving approximately 100-350ms per login. First boot
behavior is unchanged.
移除对 dde-session-daemon 的 Before 排序约束,使 XSettings1 和 dde-session-daemon
可以并行启动。后续登录时(缩放比已持久化到 DConfig),跳过 RandR 显示器枚举、
Plymouth 缩放通知和 Greeter Qt 主题更新等冗余操作,每次登录节省约 100-350ms。
首次启动行为不变。
Log: perf: optimize XSettings1 startup by removing Before constraint and skipping redundant init
Change-Id: If46f0e440459812e52f579aa9ec02c4d758336a21 parent 6cefac6 commit 4aa0fb3
2 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
0 commit comments