** Attachment added: "Sbuild log"
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1963712/+attachment/5566587/+files/ubuntu-drivers-common_0.9.6_amd64-2022-03-07T16%3A44%3A03Z.build
** Changed in: ubuntu-drivers-common (Ubuntu)
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-drivers-common in Ubuntu.
https://bugs.launchpad.net/bugs/1963712
Title:
FFE: Switch from apt to apt_pkg bindings
Status in ubuntu-drivers-common package in Ubuntu:
Confirmed
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_driver_packages() performance for a lot of modaliases ... [0.94 s] ok
system_driver_packages() performance for a lot of modaliases ... [0.96 s] ok
Old detection code:
:~$ time ubuntu-drivers list
nvidia-driver-510, (kernel modules provided by
linux-modules-nvidia-510-generic-hwe-20.04)
nvidia-driver-470, (kernel modules provided by
linux-modules-nvidia-470-generic-hwe-20.04)
nvidia-driver-470-server, (kernel modules provided by
linux-modules-nvidia-470-server-generic-hwe-20.04)
real 0m13,751s
user 0m13,480s
sys 0m0,258s
:~$ time ubuntu-drivers list
nvidia-driver-510, (kernel modules provided by
linux-modules-nvidia-510-generic-hwe-20.04)
nvidia-driver-470-server, (kernel modules provided by
linux-modules-nvidia-470-server-generic-hwe-20.04)
nvidia-driver-470, (kernel modules provided by
linux-modules-nvidia-470-generic-hwe-20.04)
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-470-generic-hwe-20.04)
nvidia-driver-470-server, (kernel modules provided by
linux-modules-nvidia-470-server-generic-hwe-20.04)
nvidia-driver-510, (kernel modules provided by
linux-modules-nvidia-510-generic-hwe-20.04)
real 0m2,673s
user 0m1,749s
sys 0m0,914s
:~$ time ubuntu-drivers list
nvidia-driver-470-server, (kernel modules provided by
linux-modules-nvidia-470-server-generic-hwe-20.04)
nvidia-driver-510, (kernel modules provided by
linux-modules-nvidia-510-generic-hwe-20.04)
nvidia-driver-470, (kernel modules provided by
linux-modules-nvidia-470-generic-hwe-20.04)
real 0m2,645s
user 0m1,702s
sys 0m0,935s
[PR]
https://github.com/tseliot/ubuntu-drivers-common/pull/68
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1963712/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp