Previous Conversations window unusable for 10 seconds after opening (for high log count)
Submitted by Travis Reitter
I haven't looked at the code, but I suspect Previous Conversations loads all logs from telepathy-logger with equal priority.
When I open the dialog, I think it should only load the conversations for Today (which should be very light in nearly any case), then load additional conversations only as absolutely necessary (eg, if the user clicks on "Yesterday" or "Anytime"). Even if it's common for users to immediately navigate to logs before the previous day, I'm sure they only care about a given day at a time as they browse. So most of the work loading all the conversations for all time is wasted.
It looks like a lot of the work is done to generate the listings in the When column. This could be made much more efficient in the common case by having a static listing of "Today", "This week", "Last week", "Last Month", "Last 3 months", etc., and only fetching the results when clicking on a different range (which happens now anyhow). A (possibly better) alternative would be to have a calendar view and a switch between the magnitude (week, month).
This phenomenon also occurs when switching to "What" column to "Text Chats" from any other. (It's doing the same work as the original open, I think). It takes so long with my logs that I originally thought it just flat-out failed to populate logs when switching "What".