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:30:57 UTC 2014


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

(Updated Dec. 11, 2014, 9:30 p.m.)


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 (updated)
-------

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/20141211/fac6bd44/attachment.html>


More information about the Plasma-devel mailing list