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 #92527 is a reply to message #92525] Tue, 05 January 2016 08:34 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Monday, January 4, 2016 at 9:53:14 PM UTC-5, Craig Markwardt wrote:
> 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

If you need it ultimately in ascii, one option is to have IDL write it in binary and then post-process it with a simple C program, which should be able to do the I/O much faster.

-Jeremy.
[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:58:29 PDT 2025

Total time taken to generate the page: 0.00444 seconds