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

David Edmundson david at davidedmundson.co.uk
Thu Dec 11 21:28:45 UTC 2014


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

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
-------


Thanks,

David Edmundson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141211/3c4a1890/attachment.html>


More information about the Plasma-devel mailing list