diff options
author | Oliver Schwaneberg <oliver.schwaneberg@gmail.com> | 2018-01-18 20:38:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-27 12:23:47 -0800 |
commit | 8accd087159f60e9de3d60538bed867519196147 (patch) | |
tree | ca7cb041a79978e14c76ef52f7e00bc08e6ad406 /desktop-widgets | |
parent | 75cf43b0b93b519a38c9cd01cf9090c2edefef20 (diff) | |
download | subsurface-8accd087159f60e9de3d60538bed867519196147.tar.gz |
uemis: speed up synchronisation of same divesites
uemis-downloader downloads the dive spot for each dive, even if the same
location was already downloaded before within the ongoing synchronization run.
I modified the function "get_uemis_divespot" to remember all requested
divespot_ids and their mapping to uuids.
New helper functions:
- static void erase_divespot_mapping()
- static void add_to_divespot_mapping(int divespot_id,
uint32_t dive_site_uuid)
- static bool is_divespot_mappable(int divespot_id)
- static uint32_t get_dive_site_uuid_by_divespot_id(int divespot_id)
The memory leak is removed through the call of erade_divespot_mapping().
Signed-off-by: Oliver Schwaneberg <oliver.schwaneberg@gmail.com>
Diffstat (limited to 'desktop-widgets')
0 files changed, 0 insertions, 0 deletions