KDateTime value caching approach
Tobias Koenig
tokoe at kde.org
Tue Aug 22 10:24:18 BST 2006
On Mon, Aug 21, 2006 at 11:05:10PM +0100, David Jarvie wrote:
Hi David,
> - Cache just the last converted value. Then, if the instance was converted to
> another time zone, the previous conversion would be lost and would have to be
> recalculated if needed again.
That seems to be the best solution IMHO. In most use cases you work only
with one timezone, so caching exactly these data sounds fine. The other
solutions are an unnecessary waste of memory.
If there is still the need of converting values to several timezones the
caching should be done by the application.
Ciao,
Tobias
--
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060822/9ffe7f57/attachment.sig>
More information about the kde-core-devel
mailing list