Archive for August, 2008

Memory Profile of MXML vs AS3 for ItemRenderers   no comments

Posted at 1:03 pm in Flash/Flex

Although using MXML can be quicker to code up it appears that using it for itemRenderers is a lot more CPU intensive than coding itemRenderers in AS3. The Repeater component also seems to hog a lot of memory.

MXML vs AS3 for itemRenderers

this is an ItemRenderer memory profile using MXML

this is the same itemRenderer recoded in AS3

 

Example of Memory usage for a Repeater component vs AS3 (based on the Paginator Component we built)

 

Profile of Paginator using a Repeater Component

Profile of Paginator using a good old fasioned for loop:

Advice:

try and always you an AS3 Class for itemRenderers rather than MXML. I wonder if Gumbo is going to be any better?

Written by paddy on August 4th, 2008

Example: Flex Paginate Component   19 comments

Posted at 12:30 pm in Flash/Flex

Here’s a little paginator component we put together. There’s plenty of room to improve it - add css styling support, etc.. but thought I’d throw it out there in case someone finds it useful.

Source

Component Source

Written by paddy on August 4th, 2008