Expensive plugins

Alexander Belchenko bialix at ukr.net
Tue Jun 1 21:03:13 BST 2010


John Arbash Meinel пишет:
> 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.)

Another reason is bzr-gtk. Explorer allowing to use bzr-gtk dialogs
instead of qbzr ones.




More information about the bazaar mailing list