--- In flexcoders@yahoogroups.com, "viraf_bankwalla" <[EMAIL PROTECTED]> wrote:
> I have an application that is primarily two data grids (summary and > detailed) that is suffering from performance problems (takes approx > 20 seconds to render a page). I am just about to start profiling [snip] If you can send me a standalone version to look at, that'll be great. (I don't promise anything; I'm just curious to find out why it's taking more time.) [EMAIL PROTECTED] I'll answer your questions to the best of my knowlegde (experienced ActionScript developers may correct me where I'm wrong): > 1. Is there a performance difference between accessing > properties as object.property and object["property"]. No, they're identical. > 2. Is there a performance difference between calling methods > and static methods? I don't know, but I guess member lookup for static methods should be faster. > 3. What is the overhead for the dispatcher and dispatching > events vs. calling methods directly? When an event is dispatched by an object, the event dispatcher looks up an internal map for all the listeners for that event, and then calls each listener one by one. Calling a method directly doesn't have those overheads. If you find yourself dispatching the same event or calling the same method repeatedly (when only once would do), it's one area to look at. > 4. What is the difference between instantiating classes using > new vs createClassObject. What are the best practices between their > usage? 'new' simply creates a new ActionScript object. createClassObject() creates a user interface object (something that has a visual representation -- a UIObject). They are not alternatives to each other, and as such there are no best practices. > 5. The "Flex Application Performance…" paper on > Macromedia's > site suggests using absolute positioning and sizing. What is the > difference between setting width/height and calling setSize. What > is the difference between setting x,y vs move. What is the the > preferred mechanism for setting the above. Setting width and height separately will cause the same code to run twice. Same for x and y. [skipping 6 and 7] 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/