X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 31 Dec 2004 16:32:45 +0100 From: Gisle Vanem Subject: _djstat_flags To: djgpp Message-id: <020501c4ef4d$f9b363a0$0600000a@broadpark.no> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Reply-To: djgpp AT delorie DOT com In programs that uses stat() heavily, it seems a huge amount of CPU cycles is wasted in _is_executable(). If I do: _djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE; the speed increase is tremendous. Since most program use f?stat() as-is, I which there was a environment variable that would do the same as above. Does it make sense if crt could do it based on a $DJSTAT_FLAGS ? BTW, it's a bit clumsy to have the logic backwards. I.e. (_djstat_flags & _STAT_INODE) *should* get the inode number. --gv