Re: Improving API for lists, or wildcarded schemas



In <1075419788 8678 0 camel ws14 commsecure com au>, Malcolm Tredinnick wrote:

> On Fri, 2004-01-30 at 08:46, Tony Houghton wrote:
> > In <1075405273 4474 47 camel localhost localdomain>, Havoc Pennington wrote:
> > 
> > > On Thu, 2004-01-29 at 08:59, Tony Houghton wrote:
> > > > I take it you're not keen on my other idea about making it easier to
> > > > access individual items in a list?
> > > 
> > > Well, I'd be concerned about the efficiency; what if someone iterates
> > > over a list with a network round trip for each item?
> > 
> > You could maybe warn against that sort of thing in the docs.
> 
> But surely the point is that applications have no way of knowing. It
> depends upon the specific gconf backend in use, which can vary from
> installation to installation. So the only advice you can give is "don't
> ever do that".

Yes, what's wrong with that? The docs could say something along the
lines of, "Use the new functions if you want to access only one item in
a list, but if you want to access more than one in quick succession,
always use the original list-at-a-time functions for efficiency."

-- 
TH * http://www.realh.co.uk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]