summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor/diffeditorplugin.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2017-07-13 14:52:55 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2017-08-10 16:58:45 +0000
commite3ce4b150d94f73224523da9077a8ba5fd7d04e2 (patch)
tree42818ea81e114dfb019c917ee58636459fc248b7 /src/plugins/diffeditor/diffeditorplugin.cpp
parent178ef461bd1ad3748307d3a43a27ca163de5afd9 (diff)
downloadqt-creator-e3ce4b150d94f73224523da9077a8ba5fd7d04e2.tar.gz
DiffEditor: Optimize patch processing
Get rid of QRegularExpressions, they are very slow. Simplify readGitPatch() a lot. Make reading of the patch about 20 times faster, especially make readGitDiff() itseft (excluding the calls to readChunks) working about 1000 times faster for huge diffs. So, the processing time for e.g. the bottom commit of qttools module (the import commit) decreased from ~20 seconds to ~1 second. Implement nice progress of patch reading. Change-Id: Ie24786596237bde475e37337663018a8bec086bb Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/diffeditor/diffeditorplugin.cpp')
0 files changed, 0 insertions, 0 deletions