Comment Re:KDBus - another systemd brick on the wall (Score 1) 232
I'm no expert; but my off-the-cuff assumption would be that it could be made quite fast:
At least with Debian and derivatives, you have a locally stored cache of package data(not the packages themselves, but their metadata). Searching that is pretty fast unless you have a lot of repositories or a brutally slow storage system.
The obvious(and probably flawed in some less obvious way that I'm not thinking through) extension would be to add the VID/PID combinations (or device classes, for class drivers) to which a driver package applies to the existing metadata about the package. You might also have a 'driver package vs. 'non-driver package' distinction to reduce the search space). During the hotplug process, if nothing suitable is already available, apt-cache search for the VID/PID pair would be run, and a match downloaded, if available(the amount of security prompting would obviously be a matter of configuration: sometimes it would be desireable that admin authorization always be required, sometimes it would be better if downloads from already-blessed repositories are acceptable, depends on the use case).
The local search would be reasonably fast, barring very slow storage, the download and install obviously depending on the size of the driver and the speed of the connection. In the not-terribly-valuable opinion of a layman, it seems like it could be reasonably quick.
At least with Debian and derivatives, you have a locally stored cache of package data(not the packages themselves, but their metadata). Searching that is pretty fast unless you have a lot of repositories or a brutally slow storage system.
The obvious(and probably flawed in some less obvious way that I'm not thinking through) extension would be to add the VID/PID combinations (or device classes, for class drivers) to which a driver package applies to the existing metadata about the package. You might also have a 'driver package vs. 'non-driver package' distinction to reduce the search space). During the hotplug process, if nothing suitable is already available, apt-cache search for the VID/PID pair would be run, and a match downloaded, if available(the amount of security prompting would obviously be a matter of configuration: sometimes it would be desireable that admin authorization always be required, sometimes it would be better if downloads from already-blessed repositories are acceptable, depends on the use case).
The local search would be reasonably fast, barring very slow storage, the download and install obviously depending on the size of the driver and the speed of the connection. In the not-terribly-valuable opinion of a layman, it seems like it could be reasonably quick.