Create tooltipManager on demand
AbandonedPublic

Authored by broulik on Nov 16 2017, 2:18 PM.

Details

Reviewers
mart
Summary

It takes a couple of milliseconds to be created and isn't vital for System Settings startup.

Test Plan

Tooltips still work

Diff Detail

Repository
R124 System Settings
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Nov 16 2017, 2:18 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 16 2017, 2:18 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin added inline comments.
sidebar/SidebarMode.cpp
236

toolTipManager = nullptr;

Look in the constructor, kept it consistent

I think you've identified something, (well, 0.2% on my PC) , which is good, but I think we should delve deeper into the issue.

KTooltipManager isn't slow, it's the platform window being created in KTooltipWidget constructor that is.
We can just move that code there.

Look in the constructor, kept it consistent

ah I just made this as a proposal as you had to change unrelated lines.

broulik abandoned this revision.Nov 17 2017, 1:06 PM

D8851 gives virtually the same benefit without having to adjust the applications themselves