Commit 7618409
committed
perf: optimize XSettings1 startup — remove Before constraint, skip redundant init, clean up debug code
Remove Before=org.dde.session.Daemon1.service so XSettings1 and dde-session-daemon
start in parallel. On subsequent boots where scale factor is already persisted in
DConfig, skip RandR monitor enumeration, Plymouth scaling, and Greeter Qt theme
update (~100-350ms saved). Remove leftover debug code in getXcbAtomProperty that
queried atom type names and hex-dumped binary property values on every call.
Remove unnecessary isServiceRegistered guard in DSMRegister. Add startup timing
logs (qWarning level) for future profiling.
移除对 dde-session-daemon 的 Before 排序约束,使 XSettings1 和 dde-session-daemon
可以并行启动。后续登录时跳过 RandR 枚举、Plymouth 缩放和 Greeter 更新
(节省约 100-350ms)。清理 getXcbAtomProperty 中的调试遗留代码(每次读取属性
都查询原子类型名称并 hex 转储二进制值)。移除 DSMRegister 中不必要的
isServiceRegistered 检查。添加启动计时日志用于性能分析。
Log: perf: optimize XSettings1 startup — remove Before constraint, skip redundant init, clean up debug code
Change-Id: I2b5f4e9404bc2af10e077d936698a2b2569d2a8e1 parent 6cefac6 commit 7618409
4 files changed
Lines changed: 14 additions & 6 deletions
File tree
- src/plugin-qt/xsettings
- impl
- misc
- modules/api
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments