Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 24, 2012, 05:45 AM   #1
gaurikolarkar
macrumors newbie
 
Join Date: Apr 2012
Memory continues to increase when loading images to Webview

I am loading HTML file which loads images using Javascript files to WebView. Every time when I load html file to Web view it shows me some memory increased in Activity Monitor. Even, when I release Webview then also it does not release the memory.

I am not caching the resources in Webview. But, when I used instruments to analyse the memory , it shows me images resources are cached in memory which does not get released.

I tried to load same HTML files in Safari browser, I found the same behavior.

Can anyone please guide me where I am missing? How can I optimize the memory loading to WebView?
gaurikolarkar is offline   0 Reply With Quote
Old Apr 24, 2012, 07:24 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by gaurikolarkar View Post
I am loading HTML file which loads images using Javascript files to WebView. Every time when I load html file to Web view it shows me some memory increased in Activity Monitor. Even, when I release Webview then also it does not release the memory.

I am not caching the resources in Webview. But, when I used instruments to analyse the memory , it shows me images resources are cached in memory which does not get released.

I tried to load same HTML files in Safari browser, I found the same behavior.

Can anyone please guide me where I am missing? How can I optimize the memory loading to WebView?
Webview _is_ optimising it. The idea is that available RAM is free, but downloading images is expensive. The fact that it behaves the same in Safari should be a hint.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:44 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC