#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: |
Description
_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)
Change History (4)
Changed 16 years ago by Spiff59
comment:2 Changed 16 years ago by Jpm
- Resolution set to Completed
- Status changed from new to closed
#837 brought a division by 3
comment:3 Changed 16 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.
_FIleListToArray (new version)