Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Optimise view reuse cache with Marker Views #5076

Closed

Description

@tobrun

Marker view integration on Android landed with #3276.

This integration is backed up by an adapter approach that uses view recycling. Currently there is no limit on the amount of Views in the cache (child views of MapView) and there is a behaviour when panning in and out the viewport that results in growing the cache while it should be reusing the items in the cache.

Example:
We show 100 view marker but panning quickly a couple of times results in a cache with 147 views.

device-2016-05-20-132241

Activity

  1. added
    Android
    annotations
    on May 20, 2016
  2. added this to the android-v4.1.0 milestone on May 20, 2016
  3. bleege commented on Jun 4, 2016

    @bleege
    Contributor

    @tobrun Do we want to impose a limit on the number of items in the cache or is this issue simply stating that the current implementing isn't re-using items already in the cache and that needs to be changed to do so?

  4. added 4 commits that reference this issue on Jun 6, 2016
  5. tobrun commented on Jun 6, 2016

    @tobrun
    MemberAuthor

    @bleege

    Below you see the problem in action, you can see our viewcache size increasing to values above 100 while there are only 100 MarkerViews.

    ezgif com-video-to-gif 31

    this is now resolved eb5ff35 with an increased cache size as seen here, where the size doesn't go over the 100 markers.

    ezgif com-video-to-gif 30

  6. tobrun commented on Jun 6, 2016

    @tobrun
    MemberAuthor

    Merged in #5250 onto release-v4.1.0 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidannotations

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions