fyi ...

Over on FlexCoders, there have been some good posts detailing ColdFusion
having poor performance when creating value objects (VOs) using
createObject.

Several options for getting optimal performance are demonstated.

Does anyone else here on cf-talk have experience with this that they could
share?

Following are links to 3 notable posts on the FlexCoders thread:
http://tech.groups.yahoo.com/group/flexcoders/message/55694
http://tech.groups.yahoo.com/group/flexcoders/message/56941
http://tech.groups.yahoo.com/group/flexcoders/message/56942

The thread started when Ron Fuller provided the following runtimes comparing
VOs being created using createObject vs. ColdFusion passing an array of
structs (and then doing object creation client side with Flex):
   200 records     As objects:  1180 ms,  As structs:  150 ms
   2000 records    As objects:  10,800 ms,  As structs:  460 ms

This morning Dirk Eismann provided runtimes using ColdFusion with JavaBeans
and delegating object creation to a Java class:
1) cfloop / createObject on a CFC "Bean" / add this CFC instance to an Array
    --> is slooooooooooow (like 5000ms)
2) cfloop / createObject on a JavaBean (same as Erik mentions) / add this
bean to an Array
    --> is fast! (like 50ms)
3) cloop / delegate object creation to a Java class (instatiated upfront)  /
Java class returns JavaBean / add bean to Array
    --> is fastest (like 30ms)

hth,

g


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261566
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to