Tuesday, June 02, 2015

5 tips for reducing the memory footprint in a background task

I was just asked for 5 tips on reducing memory footprint in background tasks.
Here's what I came up with:

1. Include as few external dependencies as possible.
2. Include as little of your own code as possible.
3. Don't load anything in memory you don't need - and free anything you do load before carrying on.
4. Do as little as possible - stick tightly to only what you absolutely must do.
5. Don't be afraid to split functionality between multiple tasks if need be.


Yes, they're all quite generic but this is actually a fairly standard scenario on mobile. Ultimately, to save time and resources (memory, network, power, etc.) you should do as little as possible and only use the things you must.


3 comments:

  1. I am an avid reader who likes engaging content. That's why I am here. Your original views on this topic are refreshing and interesting. You've done a great job of expressing your views. Thank you.
    tu 95| call of duty| clicker heroes| strike force heroes 2| kitten cannon

    ReplyDelete
  2. For my app I download images during a background process, but I check the phone's memory limit using (ulong memoryLimit = (MemoryManager.AppMemoryUsageLimit) and the phone screen size, and download appropriately sized images that I store in Azure. Do you have any advice on the best way (in terms of memory footprint reduction) to download an image and save it to Local Storage?

    ReplyDelete
  3. oakley sunglasses cheap, http://www.oakley.in.net/
    ray ban sunglasses sale, http://www.raybansunglass.us.com/
    true religion jeans, http://www.truereligionjeanscanada.com/
    snow boots outlet, http://www.wintercoats.us.com/
    coach outlet store, http://www.coachoutletstores.com.co/
    stuart weitzman sale, http://www.stuartweitzmanoutlet.us/
    giuseppe zanotti sale, http://www.giuseppe-zanotti-outlet.org/
    ugg outlet, http://www.uggoutletstore.eu.com/
    asics, http://www.asicsisrael.com/
    parajumpers sale, http://www.woolrichoutletstore.us.com/
    los angeles clippers, http://www.clippersjerseystore.com/
    tiffany jewelry, http://www.tiffany-outlet.us.com/
    calvin klein,calvin klein outlet online,calvin klein wholesale,calvin klein shoes,calvin klein underwear,calvin klein coats,calvin klein handbags
    cheap ugg boots, http://www.cheapuggboots.net.co/
    michael kors uk, http://www.michaelkorsoutlet.org.uk/
    ray ban sunglasses,ray ban sunglasses outlet,ray ban,rayban,ray bans,ray ban outlet,ray-ban,raybans,ray ban wayfarer,ray-ban sunglasses,raybans.com,rayban sunglasses,cheap ray ban
    arizona cardinals, http://www.arizonacardinalsjersey.us/
    manchester united jersey, http://www.manchesterunitedonline.com/
    kkk10 13

    ReplyDelete