GNOME Bugzilla – Bug 357459
Meld performs really bad while typing
Last modified: 2009-08-15 18:40:50 UTC
I'm using the full-blown meld (with line numbers and syntax highlighting) on two files with approx. 2500 lines. When I'm typing, meld increases its CPU load to almost 100% and comes back quite late. Proposal: Add a marker for a "dirty region" which needs to be rechecked. If the user types, save the timestamp, mark this area as dirty and add a g_timeout to perform the update. This timeout could wake up all 0.5 seconds and check whether the user has typed during the past 0.5 seconds: If he typed, do nothing. If he didn't, perform the update.
Yes, meld can be slow with large files. I've previously tried the "wait for idle" approach but the details are tricky (I invite you to try!) Meld already reruns the diff only on the part which has changed. Part of the problem is that the difflib algorithm is not amenable to partial changes. Part of the problem is that the difflib algorithm can be really, really slow.
*** This bug has been marked as a duplicate of 168139 ***
Batch close of old bugs.