[MERGE] Reading pack-names triggers 3 reads
Robert Collins
robertc at robertcollins.net
Tue Nov 11 01:31:34 GMT 2008
On Mon, 2008-11-10 at 19:18 -0600, John Arbash Meinel wrote:
>
> So my feeling was that the fix is to minimize the number of times that
> self._size is None, rather than hacking around it here. I don't know
> your use case, but is there a reason you have enormous index files,
> whose size you don't know and which you never will want to access over
> an HTTP connection?
Largely performance testing; I like to dig into indices cheaply to see
what the internal structure etc is; and having to dig up the size first
to avoid thrashing the machine would be a nuisance - and like I said, it
makes the API less predictable.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081111/fe55e81a/attachment.pgp
More information about the bazaar
mailing list