Differences for win32 versus Linux open() performance
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 5 20:53:07 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> 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.
I did this test in a different directory, and it was only 1.8s. So it
seems that my filesystem is rather fragmented (I'm down to 5G/50GB, so
it could be having some difficulties.)
Still 1.8s versus 0.5s on older hardware...
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkopd6MACgkQJdeBCYSNAANKewCfRd3ZX7u2kiSncmEjzsLpXai5
QIAAoJcUpq8XJoPt0AOGsOGWX4GsRzLZ
=WGW7
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list