Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#820 closed Feature Request (Completed)

Speed enhancement to _FileListToArray

Reported by: Spiff59 Owned by: Gary
Milestone: Future Release Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


_FileListToArray is an often-used and time-consuming function.
Almost the entire processing time of the function is spent within a FileFindNextFile loop. Within the existing loop are two seperate compares testing the value of a passed parameter.

I propose inserting a Switch statement, which will drive three seperate While loops. This allows the removal of the two tests from the exisitng While loop.

The fucntionality of the routine remains identical, but adding one Switch statements prohibits the execution of potentially tens of thousands of unnecessary compares. The attached _FileListToArray consistantly ran about 13% faster on my machine, regardless of the size of the returned array.

Attachments (1)

FLTA.au3 (1.8 KB) - added by Spiff59 15 years ago.
_FIleListToArray (new version)

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by Spiff59

_FIleListToArray (new version)

comment:1 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 15 years ago by Jpm

  • Resolution set to Completed
  • Status changed from new to closed

#837 brought a division by 3

comment:3 Changed 15 years ago by TicketCleanup

  • Milestone set to Future Release

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Gary.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.