Did you try this one?
delete canvas;
Maybe that will force garbage collection or decrease the usage anyhow.

☆PhistucK


On Mon, Jan 11, 2010 at 12:12, Harold Chan <cmkgr...@gmail.com> wrote:

> I am trying to develop an extension which uses HTML5 canvas for
> resizing images. When I try to put an image data URL to it and ask it
> to return another data URL after resizing, it may increase the memory
> usage a lot (depending on the image). When I try to remove the element
> by canvas = null, the usage does not decrease.
>
> I have several questions to ask:
>
> 1. is the cost of using canvas to resize image very large?
> 2. is there any other way to resize image and return new data url
> other than using canvas?
> 3. when i use canvas=null, does it mean that the javascript engine
> will clean it? (i cannot see any GC related to that)
> 4. is there any way to force the chrome js engine to do Garbage
> Collection?
> 5. in task manger of chrome. is the memory usage shown only caused by
> the extension alone, not sharing the memory with the pages/chrome?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to
> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.

Reply via email to