An Empathy user reported that it takes a few seconds before empathy-chat opens the chat window when starting a new chat. After some digging, we discovered that a lot of time was spent in log_store_xml_get_dates() (cf logs with timestamps) as it has to load each file and execute a regexep on it. Do we really need to parse each files? Shouldn't we start from the older files and stop as soon as we found enough messages?
Created attachment 46111 [details] logger logs from empathy-chat
Created attachment 46113 [details] logger logs from empathy-chat, with hacked log_store_xml_get_dates Here is a log after I removed the calls to log_store_xml_match_in_file from log_store_xml_get_dates.
(In reply to comment #2) > Created an attachment (id=46113) [details] > logger logs from empathy-chat, with hacked log_store_xml_get_dates > > Here is a log after I removed the calls to log_store_xml_match_in_file from > log_store_xml_get_dates. This is the goal, but we need to fix 35882 first.
The performance should already be a lot better now with the current trunk, but I'll keep this bug open until we have positive report.
We have made another step in optimizing this as we don't use g_list_insert_sorted() anymore to merge different lists.
Anyone have tried the new version ? or still care about this ?
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.