FFE: Switch from apt to apt_pkg bindings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
Fix Released
|
Medium
|
Alberto Milone |
Bug Description
Switch from the apt bindings to the apt_pkg bindings for the ubuntu-drivers tool.
This significantly improves performance (2,673s vs 13,751s , on my dated Intel Ivy Bridge i7-3770K CPU).
[Attach sbuild log]
[Performance data]
system_
system_
Old detection code:
:~$ time ubuntu-drivers list
nvidia-driver-510, (kernel modules provided by linux-modules-
nvidia-driver-470, (kernel modules provided by linux-modules-
nvidia-
real 0m13,751s
user 0m13,480s
sys 0m0,258s
:~$ time ubuntu-drivers list
nvidia-driver-510, (kernel modules provided by linux-modules-
nvidia-
nvidia-driver-470, (kernel modules provided by linux-modules-
real 0m13,785s
user 0m13,578s
sys 0m0,196s
New detection code:
:~$ time ubuntu-drivers list
nvidia-driver-470, (kernel modules provided by linux-modules-
nvidia-
nvidia-driver-510, (kernel modules provided by linux-modules-
real 0m2,673s
user 0m1,749s
sys 0m0,914s
:~$ time ubuntu-drivers list
nvidia-
nvidia-driver-510, (kernel modules provided by linux-modules-
nvidia-driver-470, (kernel modules provided by linux-modules-
real 0m2,645s
user 0m1,702s
sys 0m0,935s
[PR]
https:/
[PPA]
https:/
Changed in ubuntu-drivers-common (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
Hello Alberto! Thank you for filling in the FFe! Did you do a test-build of the change on some PPA that we could take a look at? And did you do a test install of the test packages so that you could provide some logs? The changes seem on one side simple, but touch a lot of the code, so I'm obviously a bit worried about any bumps. How noticeable is the performance improvement? Has this been measured? Just trying to assess the risk-to-merit ratio here ;)