google / cloud-print-connector

Google Cloud Print Connector
BSD 3-Clause "New" or "Revised" License
764 stars 184 forks source link

Windows: move whitelist/blacklist checks earlier #449

Closed jay0lee closed 5 years ago

jay0lee commented 5 years ago

Currently we scan all native printers before filtering unwanted printers with config whitelsit/blacklist. This is inefficient and means we can't avoid deep scanning settings of a printer we don't want to touch.

This PR moves the whitelist/blacklist check into the native printer scan loop right after we have printer name. Scans are faster and unwanted printers don't have any details pulled other than name.