On 11/8/06, Lynn Allan <[EMAIL PROTECTED]> wrote:
I'm reading in the file in "chunks" of 10,000 bytes and merging the contents together in a 4 meg feature memory buffer. There was a significant diffence in time required between 1,000 and 10,000, but not between 10,000 and 30,000, so I speculate that doing the read in one call wouldn't be that much faster (if it was possible).
Your chunk should be at least the size of a single block of the card's file system... since Palm OS's low layer reads a block at a time. At 1,000 bytes, you read each block multiple times, but at 10,000 bytes, most blocks are only read once, while ones on the ends may be read twice. Try 8192 or 16384 as a block size. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
