risc or cisc

Robert Collins robert.collins at canonical.com
Fri Apr 17 03:17:13 BST 2009


On Fri, 2009-04-17 at 12:10 +1000, Martin Pool wrote:


> Right.  So if you have many fine-grained calls in the API, it will be
> hard to avoid having so many round trips on the network.  The opposite
> is possible though, to have high level calls in the client generate
> multiple RPCs (which is what we're trying to get away from) or to have
> them generate a compound RPC.  But I wonder if eventually even some
> calls in the client would want to use a lazy evaluation or
> minilanguage form, so rather than
> 
>   for i in repo.iter_some_thing():
>     frob(i)
> 
> have
> 
>   repo.visit_some_things(frob)
> 
> so that it eventually sends across the network something like
> 
>  [visit_some_things, frob]
> 
> assuming it's smart enough to determine that at least part of frob is
> better done on the server side.

Thats my point really; that if we can't express it as something
evaluated ->over there, then we can't get away from round trips.

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090417/c7611489/attachment.pgp 


More information about the bazaar mailing list