On Wed, Aug 15, 2012 at 11:24:41PM -0700, Gregory Szorc wrote:
> On 8/15/12 11:10 PM, Mike Hommey wrote:
> >Something I noticed recently is that we spend more than 5 minutes (!)
> >during windows clobber builds to do the clobber (rm -rf). All try builds
> >are clobbers. A lot of time is wasted on mercurial cloning, too.
> >
> >What is interesting is that the corresponding times are in the order of
> >seconds on linux and osx. We're just hitting the fact that windows sucks
> >at I/O.
> 
> That is an over-generalization. I/O on Windows itself does not suck.
> I/O on Windows sucks when you are using the POSIX APIs instead of
> the Win32 ones.

Removing thousands of files and gigabytes of data in windows is
slow. That's a fact.
For example, see 
http://superuser.com/questions/19762/mass-deleting-files-in-windows/289399
 
(And if you /really/ want to waste time, try deleting files from the
file explorer instead of the command line)

> And, I'm willing to bet that rm (along with most of the GNU tools in
> our MozillaBuild environment) is using the POSIX APIs or is at least
> not using the most optimal Win32 API for the desired task.
> 
> A few months back, John Ford wrote a standalone win32 executable
> that used the proper APIs to delete an entire directory. I think he
> said that it deleted the object directory 5-10x faster or something.
> No clue what happened with that.
 
I wish this were true, but I seriously doubt it. I can buy that it's
faster, but not 5-10 times so.

Mike
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to