How many TextInputs are going to be on screen at once?  Why do you need
editability in all cells?  See my blog (blogs.adobe.com/aharui) for
examples of lightweight renderers

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of letterpigeon
Sent: Monday, November 19, 2007 3:12 PM
To: [email protected]
Subject: [flexcoders] Re: Performance Impact when using custom item
renderer

 

Hi Scott,

Thanks for your post. But I'm on flex 2 now so the
AdvancedDataGridItemRenderer is not available to me. Also, in terms
of keeping the item renderer as light weight as possible, my item
renderer is just a TextInput and I change its background color by
calling this.styleName = "ErrorCell" where "ErrorCell" is defined in
my stylesheet. But even if I comment all this out, & have my item
renderer just to renderer the text, I'm still seeing a considerable
performance hit just by using custom item renderers on all the columns
of my datagrid. Is this a limitation in flex that we must trade off
performance for using custom renderers heavily?? Thanks.

Ban

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, Scott Melby <[EMAIL PROTECTED]> wrote:
>
> Check out this post <http://blog.fastlanesw.com/?p=25
<http://blog.fastlanesw.com/?p=25> > on my blog
where 
> I discuss and demonstrate performance diffs using various item
renderers 
> in Flex. Source code is available if you run the app and right click. 
> Notice how the optimized renderer does not use layout containers
such as 
> HBox, etc. Instead it extends the AdvancedDataGridItemRenderer class. 
> In general you want to make your renderers as light weight as
possible.
> 
> hth
> Scott
> 
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com <http://www.fastlanesw.com> 
> 
> 
> 
> letterpigeon wrote:
> >
> > Hi all,
> >
> > I'm seeing a huge performance degradation while using custom item
> > renderer with a datagrid. My datagrid is using a custom item
renderer
> > for all its column. And even if my item renderer does nothing more
> > than :
> >
> > public override function data(value:object)
> > {
> > super.data = value;
> > }
> >
> > I'm still seeing a few more seconds delay compared to not using
custom
> > item renderers for a data set of 50 rows or more.
> >
> > Just wondering if this is a known issue with flex due to heavy
graphic
> > rendering? Any pointers on how to speed things up a little bit?
Thanks.
> >
> > Ban
> >
> >
>

 

Reply via email to