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.
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.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform