Coder Social home page Coder Social logo

Memory Leaks about angular-gm HOT 6 CLOSED

dylanfprice avatar dylanfprice commented on August 28, 2024
Memory Leaks

from angular-gm.

Comments (6)

dylanfprice avatar dylanfprice commented on August 28, 2024

Hi Matthiue,

Thanks for bringing this up. For anyone else who's interested, here's some more info: http://stackoverflow.com/questions/10485582/what-is-the-proper-way-to-destroy-a-map-instance

I can try something similar to your idea and let you know how it goes.

from angular-gm.

MatthieuBarthel avatar MatthieuBarthel commented on August 28, 2024

Hi dylanfprice,

Thanks for your reply, I worked on it and came up with a proof of concept :
http://plnkr.co/edit/zxhJgOQEhPxPAX9AUCGs?p=preview

The rescue/reuse technique gives good results, tell me what you think and if I can help you for something.

from angular-gm.

dylanfprice avatar dylanfprice commented on August 28, 2024

Cool thanks for doing that. I will have some time to add this in at the end of this week.

from angular-gm.

MatthieuBarthel avatar MatthieuBarthel commented on August 28, 2024

That's awesome thanks a lot, I'm looking forward for your release 👍

from angular-gm.

dylanfprice avatar dylanfprice commented on August 28, 2024

I got your basic idea working and put it in a separate branch: https://github.com/dylanfprice/angular-gm/tree/memory-leak-fix

It's not quite ready yet because I need to deal with a few issues like refreshing stale markers on the map.

I went ahead and put a build of the memory-leak-fix branch up: http://dylanfprice.github.io/angular-gm/angular-gm-0.1.0-memory-leak-fix.js. Let me know if that solves your memory leak and I'll fix those remaining issues!

from angular-gm.

MatthieuBarthel avatar MatthieuBarthel commented on August 28, 2024

Your are awesome, thank you !

I did an automated memory test, going through 300 views during 5 minutes, each view got a map, and here are the results:

  • master branch : the memory grows up to 280MB
  • memory-leak-fix branch: the memory never go upper then 35MB

Do not hesitate if I can do anything to help you.

from angular-gm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.