GNOME Bugzilla – Bug 737562
GbSourceChangeMonitor should generate file diffs in a worker thread
Last modified: 2014-09-29 08:11:36 UTC
Right now it is done synchronously in a g_timeout_add() callback. This timeout should instead push the work onto a queue for which a shared thread performs the diffs. (We shouldn't ever really be doing more than one or two at a time anyway).
Created attachment 287323 [details] [review] change-monitor: perform ggit_diff_blob_to_buffer() in a thread.
Using the thread pool from GSimpleAsyncResult to perform the parsing in a thread. The result is then handed back to the main thread to apply to the monitor instance.