Mail Archives: djgpp-workers/1997/06/10/22:48:53
> Ugh... Hmm.. what are the consequences of the size not being on a 512
> byte boundary?
Nothing terrible - just slowness when writes are not sector aligned on
the disk so DOS does more buffering.
> After posting my patches, I found the cause of the problem I mentioned
> it that post (the one with the aborts), and now I definitly agree with
> Charles' solution, just fix stubedit to limit the maximum size to 63k.
Actually it ought to be 63.5K - the maximum sector aligned size. Since
DOS can't handle anything >= 64K, and making the size not a 512 multiple
will just make things slower - 63.5K is usually the max performance point for
large transfers. Real life tests on non cached disks showed little to no
performance over 16Kb. Multiple buffers in 32-bit memory improve
performance on non-disk cached systems (acting like a cache) but we
chose not to implement that. For programs that do lots of short random
(non-sequential) reads on files, a smaller transfer buffer is actually
faster (which is why it was left stubedit-ible)...
- Raw text -