Re: raw dates/times in tny-msg-header-list + fix (patch)



On Mon, 2006-06-05 at 13:42 +0300, Dirk-Jan C. Binnema wrote:

> Made a tiny patch to also get the raw dates (time_t) instead of their
> string representations; this will allow frontends to do their their own
> thing their. Their are many possibilities, so it's probably best left to
> the frontend (eg. show the time for mails that came today, and the date
> for older mails).

Thanks. Accepted and committed.

> Sorting mails by date should be quite a bit faster also, if you sort by
> time_t instead of the string repr (and sorting by string repr will in
> many cases not give the right results, dep. on the particular repr of
> course; the default now ok, but it's _(translatable), so...). 

I've tested with your patch, but didn't notice a significant time
difference when sorting large folders.

> Maybe you'd want to remove the string representation, and let renderers
> deal with that. That might give some mem savings as well.

Feel free to try ;)

> Oh, patch fixes also a tiny copy-paste bug.

ok

> Too many words for such a tiny patch...


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]