Expensive plugins
John Arbash Meinel
john at arbash-meinel.com
Tue Jun 1 20:53:39 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gordon Tyler wrote:
> Somewhat related to this, I was wondering why bzr explorer launches
> subprocesses for qbzr commands? Surely it would perform better and avoid
> command-line encoding issues if qbzr commands were invoked in-process?
> It would also avoid the weirdness on Mac where each qbzr command
> currently running appears as a separate icon in the Dock, in addition to
> the icon for bzr explorer itself.
Fairly different discussion, though probably worth having.
Short answer: process separation allowed them to avoid blocking the main
thread for gui updates. Also, bzrlib doesn't support multithreading
particularly well. (We generally avoid global objects, but multiple
users of a single Repository can have problems.)
I believe Gary has stated that he would like to avoid that, and has been
working on code to deal with it. (Having a dedicated GUI thread and a
dedicated Bzrlib thread, etc.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwFZUIACgkQJdeBCYSNAANzswCfRAYBhACsGO09lhDflNnPYz5k
dGgAoMeXsNHTVcNZ9AH4FvD3PVlh4lrh
=6ziw
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list