subsurface/qt-mobile
Linus Torvalds 2d760a7bff Don't write back dive data that hasn't changed in git
This caches the git ID for the dive on load, and avoids building the
dive directory and hashing it on save as long as nothing has invalidated
the git ID cache.

That should make it much faster to write back data to the git
repository, since the dive tree structure and the divecomputer blobs in
particular are the bulk of it (due to all the sample data).  It's not
actually the git operations that are all that expensive, it's literally
generating the big blob with all the snprintf() calls for the data.

The git save used to be a fairly expensive with large data sets,
especially noticeable on mobile with much weaker CPU's.  This should
speed things up by at least a factor of two.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-04-04 17:27:10 -07:00
..
qml QML UI: include the new back button for iOS 2016-04-04 14:55:14 -07:00
qmlmanager.cpp Don't write back dive data that hasn't changed in git 2016-04-04 17:27:10 -07:00
qmlmanager.h QML UI: allow user to disable automatic cloud sync 2016-04-04 14:18:41 -07:00
qmlprofile.cpp QML UI: take device pixel ratio into account when scaling pixmaps on iOS 2016-03-28 17:05:29 -05:00
qmlprofile.h QMLProfile: correctly track the device pixel ratio 2016-03-08 20:50:47 -08:00