Skip to content

Cache property of graphics_devices - #4007

Merged
svartkanin merged 3 commits into
archlinux:masterfrom
h8d13:dot-init
Dec 21, 2025
Merged

Cache property of graphics_devices#4007
svartkanin merged 3 commits into
archlinux:masterfrom
h8d13:dot-init

Conversation

@h8d13

@h8d13 h8d13 commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

Basically was testing on laptop from 2010 and the Graphics Drivers section in TUI took about 2-3 seconds to load, which I found odd since it's initialized in __init__

(Think because the headers for hint text used to call lspci 3-4x) So this what I could come up with to fix just that, using the same structure as existing. @cached_property and then update the calls to use this

…tion loads directly.

By initializing it with launch instead of on the fly.
Instead of trying to hack early init.
@h8d13
h8d13 requested a review from Torxed as a code owner December 17, 2025 13:04
@svartkanin
svartkanin merged commit 17dc001 into archlinux:master Dec 21, 2025
9 checks passed
@h8d13
h8d13 deleted the dot-init branch December 21, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants