Expensive plugins

Gary van der Merwe garyvdm at gmail.com
Tue Jun 1 21:20:19 BST 2010


On 01/06/10 22:09, Jelmer Vernooij wrote:
> On Tue, 2010-06-01 at 23:03 +0300, Alexander Belchenko wrote:
>> 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.
> Isn't it possible to display Qt and GTK+ windows from the same
> application?

Unfortunately the event loops are incompatible.



More information about the bazaar mailing list