diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-04-03 17:31:59 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-04 17:27:10 -0700 |
commit | 2d760a7bff71c46c5aeba37c40d236ea16eefea2 (patch) | |
tree | 31520cecba5722150f8cddfcf627351ea1257f4f /core/uemis-downloader.c | |
parent | 2b36091599cbc51474e103f14037e5ac44215cf3 (diff) | |
download | subsurface-2d760a7bff71c46c5aeba37c40d236ea16eefea2.tar.gz |
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>
Diffstat (limited to 'core/uemis-downloader.c')
0 files changed, 0 insertions, 0 deletions