MerginMaps / MerginMaps/mobile

Apply diffs efficiently when pulling data from server

Open
#2,812 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement performance sync
Dominant language
C++
Stars
388
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
20

Description

When pulling changes from server, GeodiffUtils::applyDiffs() will apply multiple diffs one by one. This may be slow if there are many diffs to apply. A better strategy would be to first concatenate all diffs together (GEODIFF_concatChanges()), and then apply them at once.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating GeodiffUtils::applyDiffs() and reading how server changes are currently applied. Check the available GEODIFF_concatChanges() entry point, then verify that multiple diffs are combined before application and that pulling changes still completes correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
mobile
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.