Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#643 closed Feature Request (Rejected)

whole array operations

Reported by: khimik Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: whole array Cc:

Description

I wrote an AutoIt script which reads a binary file (about 16000 data points), does some very simple maths (add, multiply) and writes it back. I used _WinAPI_ReadFile/_WinAPI_WriteFile. I noticed that it takes rather long time to do DllStructGetData/DllStructSetData and simple maths in a loop, I think it took about 200 ms for this loop on my pentium 4. By comparison, fortran (g95) is about 100 times faster.

Of course AutoIt has never been intended to do complex maths operations and should not be used for this purpose, but it just occurred to me that if efficient whole array operations (like add, multiply etc and also DllStructGetData and some other functions) were introduced, the speed of many scripts could increase significantly.

Please forgive my ignorance if this makes no sense.

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, 17 years ago

Version: 3.2.12.0

Automatic ticket cleanup.

comment:2 by Valik, 17 years ago

Resolution: Rejected
Status: newclosed

Why are you using UDF's to read/write the files? Why not use the built-in functions which should be much faster?

Anyway, not likely to happen.

comment:3 by khimik, 17 years ago

Dear Valik: _WinAPI_ReadFile is only ca. 30% slower than FileRead. If you read float data in binary format written in little endian mode, you need to BitShift, and then it is faster to use _WinAPI_ReadFile.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.