Differences for win32 versus Linux open() performance

John Szakmeister john at szakmeister.net
Fri Jun 5 20:54:24 BST 2009


On Fri, Jun 5, 2009 at 3:45 PM, John Arbash
Meinel<john at arbash-meinel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm working on profiling initial commit performance. I ended up creating
> a tree that has all the files of mysql, but without any content. It
> still took ~9s to commit.
>
> So I started digging further, and I found that *just*:
>   open(fname, 'rb').close()
>
> For 7k files takes 3.6s on win32. On a much older linux sytem, it only
> takes 0.6s. I assume this is the issues with opening a file locks its
> path, etc.

This could partially be because of antivirus tools.  They have a
tendency to hook a number of system calls, that dramatically slows
down performance.

-John



More information about the bazaar mailing list