[kde] [Bug 429454] The reading of the icons may block the GUI

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Dec 18 02:34:52 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=429454

--- Comment #8 from 21Naown at gmail.com ---
Another example is to add the output of the following command into
“kate-master/kate/main.cpp”:
find /usr/share/icons/breeze/ -type f | grep --fixed-strings 'svg' | sed
--regexp-extended 's/.+\///g' | sed --regexp-extended 's/^/   
QIcon::fromTheme\(QStringLiteral\("/g' | sed --regexp-extended
's/\.svg$/"\)\)\.isNull\(\)\;/g' | sed --regexp-extended '1 i \   
QElapsedTimer timer\;\n    timer\.start\(\)\;' | sed --regexp-extended '$ a \  
 qDebug\(\) \<\< timer\.elapsed\(\)\;'

Build, execute “echo 3 > /proc/sys/vm/drop_caches” then
“kate-master/build/kate/kate”. “qDebug()” displays less than 1 second. The
results seems even better.

No user with a HDD will ever report a single bug about slow application startup
for nearly 1 more second at the start of Plasma (which is an example of when to
load the icons because all icons are loaded, not only those of Kate).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list