> I'd be interested to know how the code I suggested performs in > comparison to the regex with the 360k string - in theory it > outperform > it: > > <cfset myList = ArrayToList( myString.toCharArray() ) />
Running on CF8, I used cftimer to test execution time on a string 360K long (all alphanumerics, just alphabet appended with 1 to 0 and concatenated 10,000 times). No cfdump or output; just a cfset statement. My original function - over 60 seconds, times out. this.s**tCan(). ArrayToList( myString.toCharArray() ) - 188 ms StringToDelimListRE() (the one with the ASCII breasts (Hah, I missed that)) - 172 ms listFromChars() - 125 ms I'm not 100% positive on which ones will/will not accept non-alphanumerics in the string; didn't test for that in all cases. Anyone else care to time these out? In any ase, there's something to be said for using only 1 line of code - well worth the price of a few millseconds in my book, so long as I don't have to run this process on War & Peace... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320765 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

