'bzr status' stats each file multiple times

Aaron Bentley aaron.bentley at utoronto.ca
Sun Dec 4 21:52:10 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John A Meinel wrote:
| I have a rather large .bzrignore, because this project
| likes to build inside the tree. It's a rather large project with 1600
| source files, and about 50 output executables.
| So I think bzr is trying to match each file it finds against all entries
| in .bzrignore.

I don't know what it *is* doing, but it should only be checking
unversioned files against .bzrignore.

| Since a lot of them are absolute paths, I'm thinking bzr should use a
| dictionary for the absolute paths, then it can just say "is path in
| ignored_paths" rather than doing a fnmatchcase against each one. 50x500
| files takes a while.

Since absolute paths may have wildcards, that's not entirely right.  But
non-wildcard absolute paths are common, so it may be worthwhile to
optimize for them, as long as the external behavior doesn't change.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDk2UK0F+nu1YWqI0RAm4xAJ95ne6gZ2zx5gXZfbhpeKCAc9ZWTgCcCbF9
eP/OPa5vJIScpWBOlMOALa0=
=NlsO
-----END PGP SIGNATURE-----




More information about the bazaar mailing list