FWIW, you'll probably find a speed improvement if you have output="false" on cfcomponent and cffunction...
On Mon, Oct 18, 2010 at 6:50 PM, Bryn Parrott <bryn_parr...@internode.on.net> wrote: > > For those to whom it might be useful, here is the wrapper cfc I used for > java.io.FileWriter which, in the application I was concerned with, attained a > 10x performance improvement over <cffile action='append'...> under condition > that over 20,000 lines needed to be written out to a text file. > It aint nuthin special, but might save someone a few minutes... > > > <cfcomponent displayname="javaFile" output="true"> > > <cffunction name="initFile" returntype="boolean" access="remote" > output="Yes"> > <cfargument name="filename" type="string" required="yes"> > <cfse ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338316 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm