Mail Archives: djgpp-workers/2001/11/11/14:31:11
Hello.
Eli Zaretskii wrote:
>
> On Sun, 11 Nov 2001, Richard Dawe wrote:
>
> > Below is a patch to compute st_blksize in struct stat. This is
> > basically the st_blocks patch with the st_blocks stuff removed.
> >
> > OK to commit?
>
> It's fine with me, but:
>
> 1) Please don't use tolower (or any other ctype functions) when you
> manipulate file names. Only ASCII characters should be subject to
> case conversions, whereas ctype function are locale-sensitive. So
> please downcase with explicit code.
OK, I'll fix that. I'll add some text to develop.txi too.
> 2) I'm a bit worried by the possible slow-down, due to the call to
> statfs. Could you compare the old and the new versions, at least
> on hard disks, floppies, and CDs?
I'll look at that later in the week. A single stat call may be hurt badly,
but programs that stat files on the same drive a lot shouldn't be hurt
much, because of the caching mechanism. If it really is a lot slower, we
could add another flag to _djstat_flags for those people really concerned
with performance (_STAT_BLKSIZE perhaps).
Thanks for your critique, bye, Rich =]
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -