GNOME Bugzilla – Bug 778467
Same diff against the subversion repository is much slower compared to diff between regular files
Last modified: 2017-12-13 19:23:20 UTC
I am in the subversion directory. File 'file.txt' has about 16,000 lines, and differs in about 150 lines with the repository. Command 'meld file.txt' is very slow. However, when I have the same base version of 'file.txt' in a file 'file.txt.base', this command is much faster: 'meld file.txt.base file.txt'. This makes me think that it's not the meld comparison that is that slow. It is something in the way how it compares files to the versions in the repository that is slow. This probably can be fixed.
This is probably due to the way we initialise single-file repository diffs. We do our normal VC initialisation, which may be slow for large repositories, even though it's not necessary for a single file comparison. I'm not going to look at this, but if someone else wanted to pick it up, I'd be happy to provide guidance.
While not being a resolution for this problem, a small improvement (2x in my environment) can be achieved by simply upgrading to current master that uses python3. Meld parses xml logs with ElementTree which uses faster c-based implementation on python3 by default.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/127.