Plugin to keep bzr loaded in memory

John A Meinel john at arbash-meinel.com
Wed Oct 5 21:25:45 BST 2005


Martin Pool wrote:
> On 05/10/05, John A Meinel <john at arbash-meinel.com> wrote:
>
>>I create a simple plugin available from here:
>>http://bzr.arbash-meinel.com/plugins/service/
>
>
> I think it's a pretty interesting idea, especially for older machines
> where even just starting python and loading the standard library will
> take a fraction of a second, regardless of what bzr does.
>
> The security issue could be fixed by making a unix domain socket.  We
> could multiplex stdout and stderr across it.

I'm not sure how you would split back out, I was thinking it would be
possible to do that with FIFOs. So that the spawned process would just
redirect its output through the fifos, and the client could do a
select() or poll() accross them and print to the appropriate output.

However, the TCPServer is bound to just localhost, so I also think the
security is fine. (Unless I miss how TCPServer works).

>
> There are at least two other approaches to avoid python startup.  One
> is to keep it running in a gui (e.g. meld, or something specific to
> bzr), and another is to have a bzr shell, as hct did.
>

Yeah, fai's shell mode was really nice, especially because it did fancy
autocompletion.

John
=:->

> --
> Martin
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051005/7b64c146/attachment.pgp 


More information about the bazaar mailing list