comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to fasten formatted printf?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to fasten formatted printf? [message #92525 is a reply to message #92524] Mon, 04 January 2016 18:53 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Monday, January 4, 2016 at 9:01:10 PM UTC-5, Yunfeng Tian wrote:
> Hi all,
>
> I usually have over a thousand text files to write. Each file contains 9 columns and several thousand lines. The below is a test.
...
> For 1000 files, it will take over 2 minutes. I wonder whether there is a way to do it very quickly.

You are probably limited by I/O. You can investigate:
1. SSD or hybrid SSD drive
2. Some kind of "RAM disk"
3. Whether you can satisfy your requirements by writing unformatted binary files with WRITEU instead of formatted binary files with PRINTF.
3. Computer with better CPU and I/O throughput performance.
Other than using binary files, there's really nothing you can do to your IDL code to make it faster.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GDL 0.9.6 delivered
Next Topic: Matrix operations with IDL: Avoiding for loops

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:36 PDT 2025

Total time taken to generate the page: 0.00419 seconds