Try using java in your cf page to speed up text processing.

I wrote about it here 
http://www.burnette.us/blog/index.cfm/2006/2/17/Using-Java-Instead-of-cffile-to-Read-from-Disk

and here
http://www.burnette.us/blog/index.cfm/2006/2/1/Using-Java--ColdFusion-to-Read-a-Directory

and here
http://www.burnette.us/blog/index.cfm/2006/1/30/Using-Java-Instead-of-cffile-to-Write-to-Disk

Trevor

> Well, I see it as using a better tool for the task.  ColdFusion is
> clearly not good for large text processing tasks.  You can probably 
> find
> a work around (sounds like you already did), but Perl is very easy to
> pickup, and it absolutely smokes at text processing tasks.  For 
> example,
> I have a Perl script that maps database activity for our entire site.
> We have 206 cfm files, which average around 260 lines each.  My 
> script
> reads in each file, one at a time, and parses the file one line at a
> time.  It takes about 6 seconds for the script to run, start to finish.
> 
> And that includes reading 206 cfm files from a network drive, and 
> then
> writing a separate 206 documentation files to that drive.  ColdFusion
> just doesn't compare, when it comes to speed.  At least not yet, but 
> I
> have mentioned in surveys that I'd like CF's text processing to be
> faster.
> 
> I am not suggesting that you replace all your CF code with Perl, just
> that Perl rocks for text processing.  ;)
> 
> 
> ------------------
> 
> 
> [INFO] -- Access Manager:
> This transmission may contain information that is privileged, 
> confidential and/or exempt from disclosure under applicable law.  If 
> you are not the intended recipient, you are hereby notified that any 
> disclosure, copying, distribution, or use of the information contained 
> herein (including any reliance thereon) is STRICTLY PROHIBITED. If you 
> received this transmission in error, please immediately contact the 
> sender and destroy the material in its entirety, whether in electronic 
> or hard copy format.  Thank you.   A2
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236097
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

Reply via email to