About memory management

11 views
Skip to first unread message

Harilal K M

unread,
Nov 16, 2010, 12:16:21 AM11/16/10
to BulkLoader users
hello,

I decided to use this bulkloader for my next project. My doubt is
about memory management. will removeAll() removes everything? or i
need to call clear() also?

regards
Harilal K M

Harilal K M

unread,
Nov 16, 2010, 12:18:00 AM11/16/10
to BulkLoader users
and one more doubt is it possible to load swf also?

Arthur Debert

unread,
Nov 16, 2010, 6:28:48 AM11/16/10
to bulkload...@googlegroups.com
Hi Harilal.

> I decided to use this bulkloader for my next project. My doubt is
> about memory management. will removeAll()  removes everything? or i
> need to call clear() also?

Hm.. not really. If you call removeAll, you'll loose all references to
previous loading items (and regain that memory once the VM thinks it's
time). But, some of the internal state for bulkloader will be kept
(which should be awfully small). Once you call "clear", those internal
variables are cleared but you'll not be able to reuse that BulkLoader
instance again. For most usage cases, removeAll is more than enough.

Yes, you can load swfs, for AVM1 and 2.

Best regards
Arthur
>
> regards
> Harilal K M
>
> --
> You received this message because you are subscribed to the Google Groups "BulkLoader users" group.
> To post to this group, send email to bulkload...@googlegroups.com.
> To unsubscribe from this group, send email to bulkloader-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bulkloader-users?hl=en.
>
>

--
Arthur Debert
www.stimuli.com.br

Harilal K M

unread,
Nov 16, 2010, 7:02:06 AM11/16/10
to BulkLoader users
Thanks for the reply..

am concerned about the memory usage and GC as i need to load heavy
swf's.

I need to load about 12 swf's,.
about 3 will load first and rest will load after it.
is it possible to control this?



Is it possible to add all url's and load

Arthur Debert

unread,
Nov 16, 2010, 9:15:14 AM11/16/10
to bulkload...@googlegroups.com
There are various ways to organize that.
You might want to create one BulkLoader for the first ones, and split
the remaining swfs into others so that you can load, get reports and
dispose them in one line.

Or you might want to use complete handlers to decide on which items to
load and so on.

This is all dependent on your application logic, and which tradeoffs
you're willing to make regarding memory usage, bandwidth, server
resources and perceived user responses.

All in all, 13 swf is not a very large number at all. Unless most of
them are many megabytes in size, you should be fine. We routinely use
hundred of assets loading at runtime.

As usual. the best advice is: profile. Build your application and
measure all the variables you need. Lather, rinse, repeat.

Best regards
--
Arthur Debert
www.stimuli.com.br

Reply all
Reply to author
Forward
0 new messages