One area where we found significant improvements by moving code from ColdFusion to Java is where we were creating up to thousands of objects in high iteration loops. We were modeling an element of lists with a component and then doing set operations (union, intersect, difference) on those lists. We modeled that simple component with a Java class instead and increased performance over 80% in just the object creation (that figure is off the top of my head - its been awhile since we tested the old way). Java's set operations (java.util.HashSet) accessed via cfscript also simplified the overall code.
Basically, I would suggest that if you can isolate an area where is it taking CF (not the mail server, database call, etc...) a while to perform, especially something that is called in a loop, then you might want to try implementing that functionality in Java. For example, if it takes ColdFusion 10ms to create a component and Java takes 5ms to create a similar object, then you only get 5ms savings on one call. If that is being called in a loop 5000 times, then you get 25000ms = 25 seconds savings. Big difference. Jon On Apr 7, 2005 9:07 AM, Protoculture <[EMAIL PROTECTED]> wrote: > Would we get a substantial performance boost on a process intensive series of > CF tasks if we converted them into Java? ( assuming of course it was done > properly ). > > Right now we have a emailing system that takes quite a bit of time to finish. > I'm wondering if we brought the majority of processes into Java if that would > help us out. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201903 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

