Mail Archives: djgpp-workers/1997/06/12/12:05:29
Eli:
> Yes, that's easy, now that I'm aware of that. But try to explain this
> one: several people have reported (it's even in the FAQ) that stubediting
> ld.exe to 64KB makes linking *much* faster when the libraries are on a
> networked drive.
I think I can explain that, as I hacked stdio and experimented with that.
ld looks through the library, doing lots of fseek's. As stdio default
buffer size defaults to transfer buffer size, the size of chunk read
is determined by it. But ld often needs just a few kilobytes (common
size of object modules) the other data can be unneeded and will be
discarded on the next fseek. (It was even worse sometime - fseek used to
always discard data evein if it could be reused).
This all explains the strange diagram of ld performance depending on
TB size, which I have posted here sometime ago.
Alexander.
- Raw text -