Sorry, by objects I meant Components.
The components aren't that large or complex. They simply display an image
and a few labels based off the information off the record being passed to
it.
<mx:Canvas x="0" y="0" height="100%" width="100%">
<mx:Image source="{src}" width="125" height="125" x="0" y="15" />
<mx:Label htmlText="{nameItem}" x="0" y = "0" fontWeight="bold"/>
<mx:Label text="${priceString}" x="135" y = "50"
fontWeight="bold"/>
</mx:Canvas>
The XML file is about 2700~ records, which turns out to be around 2.7mb.
I've got IIS compression working on it so it brings it down to about 200k.
It's not a load issue with the XML file, as I can load the XML in to a data
grid near instantly. The issue seems to be the creation of the Components.
The way I've got it set up now is by loading and displaying the first 9
records. However, that removes the scroll bar, thus not allowing the user
to browser all the records
quickly.
What do you mean by "remoting"?
Thanks!
Luke
On Tue, Jan 13, 2009 at 6:41 PM, Cameron Childress <[email protected]>wrote:
> Objects? How big and complex are these objects? How large is the XML
> file? Have you evaluated remoting as an option?
>
> Have you considered loading the first 9 records and incrementally
> loading additional pages of data as needed?
>
> -Cameron
>
> On Tue, Jan 13, 2009 at 5:59 PM, Lucas Golden <[email protected]> wrote:
> > So, now that I've got my XML import working nice and fast, I've come to
> > another snag with the loading speed of the project I'm working on.
> >
> > I've got about 2700~ or so records being sent in to Flex with information
> > for each product. Now, I've created a simple custom display object that
> > once I've got everything in to the ArrayCollection, it then goes and
> creates
> > a unique display object for each record. These display objects are then
> > output in to a canvas in a row format. This will, naturally, lead to the
> > canvas having a scroll bar as the app is creating all the display options
> at
> > start time.
> >
> > The problem I'm running in to is that if I allow it to run all 2700~
> > records, it will completely lag out and has a load time close to 2
> minutes.
> > I can go shorten the records to only display a certain number, but I can
> > only get about 30-40 objects to be created before the lag makes the app
> > unusable.
> >
> > So, my question is this: Is there any way to only create the items once
> > they are being viewed by the user? I created Up and Down buttons and
> made
> > it where it only creates/displays 9 items at a time. However, this
> solution
> > isn't ideal as there's not a scrollable bar to allow users to browse all
> the
> > objects.
> >
> > I hope this was clear enough,
> >
> > Thanks!
> > Luke
> >
> >
> > -------------------------------------------------------------
> > To unsubscribe from this list, simply email the list with unsubscribe in
> the
> > subject line
> >
> > For more info, see http://www.affug.com
> > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> > List hosted by FusionLink
> > -------------------------------------------------------------
>
>
>
> --
> Cameron Childress
> Sumo Consulting Inc
> http://www.sumoc.com
> ---
> cell: 678.637.5072
> aim: cameroncf
> email: [email protected]
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------