[Bug 1282082] [NEW] driverevent wastes cpu time

Harald Sitter sitter.harald at gmail.com
Wed Feb 19 13:37:06 UTC 2014


Public bug reported:

        Q_FOREACH (const QString &key, map.keys()) {
            QApt::Package *pkg = m_aptBackend->package(key);
            if (pkg) {
                if (!pkg->isInstalled() && map[key]["recommended"].toBool()) {
                    m_showNotification = true;
                }
            }
        }

^ should continue once m_shwonotification is set, there is no point in
iterating through 30000 map entires if the first already requires the
notification to be shown

** Affects: kubuntu-notification-helper (Ubuntu)
     Importance: High
     Assignee: Rohan Garg (rohangarg)
         Status: Triaged


** Tags: kubuntu

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kubuntu-notification-helper in Ubuntu.
https://bugs.launchpad.net/bugs/1282082

Title:
  driverevent wastes cpu time

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kubuntu-notification-helper/+bug/1282082/+subscriptions




More information about the kubuntu-bugs mailing list