Jester, 

this is a lot of good information.  Thanks a ton!

--- JesterXL <[EMAIL PROTECTED]> wrote:

> Creating 760,000 objects in an array takes an
> average of 22 seconds, and 
> utilizes up in the 60 megs range.  The RAM isn't too
> accurate, but the time 
> is.  Running in Flash Player 8.5 takes 2 seconds
> less.
> 
> Creating 12,000 objects with the properties you
> showed takes an average of 
> 170 milliseconds.  Running in Flash Player 8.5 takes
> 2 seconds less.
> 
> My suggestion is to find a way to continually get
> and update the data. 
> Rather than get it every minute, get it every few
> seconds, or whatever it 
> takes to get lesser chunks.  12,000 is definately
> doable by Flash 8 and 7, 
> but 760,000 causes you to hit the script-timeout
> limit.  While Flex can 
> extend this, locking up your GUI is pathetic, and
> while stretching out the 
> processing over frames is doable, it's not fun.
> 
> ...now, if you are using Flex 2, well, results are
> different.  Creating 
> 760,000 Records that each hold 4 ints in a
> persistant array, just like the 
> example done in Flash 8, takes 1.2 seconds... fast
> as heck comparitvely, so 
> getting those records initially as well as every
> minute apparently would 
> work great.  Running just 12,000 takes 20
> milliseconds.
> 
> 
> ----- Original Message ----- 
> From: "Jonathan Hirschi" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, January 20, 2006 10:01 PM
> Subject: Re: [flexcoders] Performance question -
> please help!
> 
> 
> 
> Oh i guess i should have stated that when I request
> the data from my web service (coldfusion cfc),
> 760,000
> is about the number of records (in total) that i'm
> expecting to get (200 requests with 2100 records in
> each request).  I have to parse through those
> records
> to create the Charts.  I'm pulling the records back
> with a remoteobject request.  I should also further
> say that the 760,000 records are all for the initial
> request. subsequent requests will be a lot less...
> but
> still along the lines of 12000 records every minute.
> 
> records are coming back in the format of:
> 
> machineID, propertyid, minuteid, propertyvalue
> 1,1,213,98
> 1,2,213,78
> 2,1,213,94
> Everything is numbers
> 
> 
> 
> Thanks for the explanations jester.
> 
> --- Jonathan Hirschi <[EMAIL PROTECTED]> wrote:
> 
> > Well, the way I'm planning this out is that at the
> > moment, i need to have 60 chart objects with
> > essentially up around 40 or so series per chart
> > (estimated - could go as high as 60).  Each series
> > is
> > an array of numbers.  Each array has 60 values.
> >
> > I'm still noodling out how to best put this
> > together...
> > I need still need to manage time in all this for
> > labels on the charts, but the time element is
> going
> > to
> > be synced across alll of the charts, so I've been
> > playing around with updating the labels and
> > horizontal
> > values manually.. (not sure if that's the way to
> go
> > yet)
> >
> > so for example (hope this makes sense):
> >
> > Chart = cpu:object
> >
> > series = machine1:Array .... machine60:Array
> >
> > machine1:Array
> > 98
> > 100
> > 45
> > 67
> > etc..
> >
> > machine2:Array
> > 56
> > 34
> > 98
> > 45
> > etc...
> >
> > --- JesterXL <[EMAIL PROTECTED]> wrote:
> >
> > > Sure; Flex 2 gets all of Flash 8's bitmap
> features
> > > with the added benefit of
> > > a fast as nuts AVM.  As far as the data, though,
> > not
> > > sure.  I've spent 3
> > > years pushing Flash to it's limits and know
> where
> > > she breaks, but garbage
> > > collection & tons of data, I haven't really
> found
> > > the ceiling yet in 8.5.
> > > What I have found is "fixed in the next build",
> so
> > > it all sounds promising.
> > >
> > > Flash in general has problems creating millions
> of
> > > objects because of the
> > > overhead associated with the actual creation of
> > > "Object" in Flash.  There is
> > > a lot of overhead, and while it's significant
> for
> > > the hundreds, for the
> > > thousands & hundreds of thousands, those bytes
> > start
> > > to add up.  This is
> > > significantly improved in 8.5.  No, I don't have
> > > details; basically, the
> > > amount of overhead is significantly reduced; it
> > was
> > > a big problem in Flash
> > > hitting the "hundreds of MovieClips" limit, and
> > now
> > > works great... well, as
> > > best an alpha can be.  Besides, the way it was
> > > explained no sense...
> > > something about byte headers, and trait objects,
> > and
> > > all kinds of other
> > > low-level insanity you have to be a genious to
> > > understand... or a Comp Sci
> > > grad I reckon.
> > >
> > > Max memory?  Nope; I've had Flash take up to 2
> > gigs
> > > once, it was awesome!
> > >
> > > Again, haven't really pushed 8.5 yet since she
> > isn't
> > > done.
> > >
> > > As far as porting, yeah, I agree.  We've used a
> > > Flash 8 loaded SWF in 2
> > > projects to enable file-upload, and while it
> works
> > > for the most part, it's
> > > not eloquent, and not being eloquent ticks
> > > developers off.
> > >
> > > Actually, 720,000 doesnt' sound to bad... what
> > > properties do these data
> > > points have?  Like an ID and Name, or a long
> list
> > or
> > > what?
> > >
> > > As far as GC, hell no; if Adobe published how
> > their
> > > GC worked, and changed
> > > it, we'd all be f00ked.  I think Tinic's article
> > is
> > > the only one that has
> > > lasted:
> > >
> >
>
http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html
> > >
> > > There was a comment on another article where he
> > > described how using 1 member
> > > variable vs. many locals was better... even
> though
> > > locals were optimized for
> > > local registers in Flash Player 7 making
> functions
> > > faster... it's all
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to