delorie.com/archives/browse.cgi | search |
From: | rrankin AT primenet DOT com (Rick Rankin) |
Subject: | Re: File operations speed-up |
18 Mar 1997 02:40:48 -0800 : | |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <3.0.1.32.19970317202444.007b8c80.cygnus.gnu-win32@mailhost.primenet.com> |
Mime-Version: | 1.0 |
X-Sender: | rrankin AT mailhost DOT primenet DOT com |
X-Mailer: | Windows Eudora Pro Version 3.0.1 (32) |
Original-To: | Sergey Okhapkin <sos AT prospect DOT com DOT ru>, |
"'Gnu-Win32'" <gnu-win32 AT cygnus DOT com> | |
In-Reply-To: | <01BC32DD.A9EB1B90@gater.krystalbank.msk.ru> |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
What are you going to do about backup utilities that clear this bit when a file has been backed up? I assume that there are still backup utilities out there that use the archive bit for determining when a file needs to be backed up. At 02:15 PM 3/17/97 +0300, Sergey Okhapkin wrote: >Hi! > >This patch increases the speed of stat/lstat calls dramatically. The trick >is simple. Cygwin's stat call implementation reads the beginning of stated >file to look for a "magic cookie" to define "executable" and "symlink" >attributes of a file. With this patch reading is performed only if file >have "archive" bit cleared. All ordinary files (not executables/symlinks) >have this bit set. After applying this patch You have to "chmod +x file" on >all executables/symlinks. I made a "chmod +x *" on directories with >binaries. Later I'll write a special utility "fssync" to examine all files >in a given directory tree and to set archive bit according to file magic >cookie. Compare the time of "du ." on cygwin's root without and with this >patch :-) > > > >-- >Sergey Okhapkin >Moscow, Russia >Looking for a job. > > > >Attachment Converted: "e:\eudora\rick\attach\archive.diff" > >- >For help on using this list, send a message to >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > > Rick Rankin rrankin AT primenet DOT com - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |