mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Memory management

Open JenishKananiLime opened this issue 3 years ago • 2 comments

Environment

How can we clean up memory?

for example before I add all annotations and styles the memory is around 250 mb after which it goes to 400+ mb questions is that if we remove this style and annotations meomry goes to 350 to 400 mb is there a way to reclaim more memory so app doesn’t crash later?

  • Xcode version:
  • iOS version:
  • Devices affected:
  • Maps SDK Version:

Observed behavior and steps to reproduce

Expected behavior

Notes / preliminary analysis

Additional links and references

JenishKananiLime avatar Aug 16 '22 14:08 JenishKananiLime

@JenishKananiLime how are you removing annotations from your map? Are you using the method outlined here?

ZiZasaurus avatar Aug 17 '22 12:08 ZiZasaurus

Yes that is what I do, but evening removing all annotations / styles the memory still doesn't go down as much

JenishKananiLime avatar Aug 17 '22 15:08 JenishKananiLime