From a newbie to newbies
- Posted by "Bruce M. Axtens" <bruce_axtens at SIL.ORG> May 10, 1999
- 636 views
Watch out for get_bytes(). If you say sequence blk integer handle handle = open( "HUGEFILE.DAT", "rb" ) blk = get_bytes( handle, 72000000 ) then be prepared for a bit of a wait. Yes, there's the wait while the data actually gets sucked off the disk, but there's also the wait while get_bytes executes a repeat() to set aside the memory, and then the loop from 1 to 72000000 while get_bytes() gets each byte (individually?!). Added to all that is the memory and disk swapping that goes on while the underlying system tries to provide the memory. Add it all up and you've got a big performance hit. Question to the Euphoric Community: is there anything better out there than get_bytes(). Any Windows function? Bruce.