On 08/16/2012 12:03 AM, Nicholas Nethercote wrote:
On Wed, Aug 15, 2012 at 11:41 PM, Mike Hommey <m...@glandium.org> wrote:
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.
http://blog.johnford.org/writting-a-native-rm-program-for-windows/
says that it deleted a mozilla-central clone 3x faster.

And renaming the directory (then deleting it in parallel with the build, or later) ought to be some power of ten faster than that, at least from the build-time perspective. At least if you don't do anything expensive like our nsIFile NTFS renaming goopage (that traverses the directory tree making sure NTFS ACLs are preserved for all files). Which most versions of 'rm' aren't going to do, I'd guess.

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

Reply via email to