Review Request 121453: Cache QTimeZone for the lifespan of the TimeSource don't recreate every minute

David Edmundson david at davidedmundson.co.uk
Fri Dec 12 12:19:57 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121453/
-----------------------------------------------------------

(Updated Dec. 12, 2014, 12:19 p.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma.


Repository: plasma-workspace


Description
-------

cache QTimeZone for the lifespan of the TimeSource don't recreate every minute

QTimeZone::systemTimeZoneId() will open /etc/localtime every single time it is called.

We are calling this in ::updateTime which happens every single minute.


Diffs
-----

  dataengines/time/timesource.h 5ee1ef6 
  dataengines/time/timesource.cpp 934ed49 

Diff: https://git.reviewboard.kde.org/r/121453/diff/


Testing
-------

Ran strace -e open plasmashell without crying

Selected a few zones and mouse-wheeled between them.


Thanks,

David Edmundson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141212/83f47fcf/attachment.html>


More information about the Plasma-devel mailing list