Results 1 to 2 of 2

Thread: Enhancing performance with files and arrays

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Location
    San Jose, CA
    Posts
    66

    Enhancing performance with files and arrays

    The VB6 program I'm working on often loads files which are 20MB-80MB, into an array for temporary storage before processing.
    The array is a member of a Class.

    There's a nested for loop at which the data gets transferred from the temp array to the permanent array.

    I'm not sure why the designer did this. I'm still trying to figure out the rest of the program.

    I've optimized the for loops so no math is done inside the loops themselves. This only reduced the loop time by 1000 ticks, out of 31,000 ticks (total loop time for both loops)

    Are there any other ways to optimize (for speed) loading data from a File (using Get) into an Array in VB?

    thanks

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You could try getting the file in one big chunk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width