<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/index/cache.c, branch cmn/https-cap-no-hardcode</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>tests: use legitimate object ids</title>
<updated>2016-02-28T23:54:56+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-02-28T21:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=4afe536ba1c909ff8ab8d1b75997d3897b72571b'/>
<id>4afe536ba1c909ff8ab8d1b75997d3897b72571b</id>
<content type='text'>
Use legitimate (existing) object IDs in tests so that we have the
ability to turn on strict object validation when running tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use legitimate (existing) object IDs in tests so that we have the
ability to turn on strict object validation when running tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up some memory leaks</title>
<updated>2014-10-27T02:27:44+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2014-10-13T18:34:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=cdd71711cedd3c79a10f75ea8ff98c3979bf6c6c'/>
<id>cdd71711cedd3c79a10f75ea8ff98c3979bf6c6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tree-cache: correct the entry_count calculation</title>
<updated>2014-10-22T19:25:08+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-10-22T19:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=bb0757d56c7a2f0d337f1e22f9796f4090866480'/>
<id>bb0757d56c7a2f0d337f1e22f9796f4090866480</id>
<content type='text'>
The entry_count field is the amount of index entries covered by a
particular cache entry, that is how many files are there (recursively)
under a particular directory.

The current code that attemps to do this is severely defincient and is
trying to count the amount of children, which always comes up to zero.

We don't even need to recount, since we have the information during the
cache creation. We can take that number and keep it, as we only ever
invalidate or replace.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The entry_count field is the amount of index entries covered by a
particular cache entry, that is how many files are there (recursively)
under a particular directory.

The current code that attemps to do this is severely defincient and is
trying to count the amount of children, which always comes up to zero.

We don't even need to recount, since we have the information during the
cache creation. We can take that number and keep it, as we only ever
invalidate or replace.
</pre>
</div>
</content>
</entry>
<entry>
<title>index: make sure to write cached subtrees if parent is invalidated</title>
<updated>2014-10-10T17:43:42+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-09-29T06:03:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=795d8e932893b9944c6fe72191cb80c2ccdd5d34'/>
<id>795d8e932893b9944c6fe72191cb80c2ccdd5d34</id>
<content type='text'>
If e.g. the root tree is invalidated, we still want to write out
its children, since those may still have valid cache entries.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If e.g. the root tree is invalidated, we still want to write out
its children, since those may still have valid cache entries.
</pre>
</div>
</content>
</entry>
<entry>
<title>index: write out the tree cache extension</title>
<updated>2014-10-10T17:43:42+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-09-28T05:00:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=c2f8b215937ed6f17dce94a4bde26d5c83b42533'/>
<id>c2f8b215937ed6f17dce94a4bde26d5c83b42533</id>
<content type='text'>
Keeping the cache around after read-tree is only one part of the
optimisation opportunities. In order to share the cache between program
instances, we need to write the TREE extension to the index.

Do so, taking the opportunity to rename 'entries' to 'entry_count' to
match the name given in the format description. The included test is
rather trivial, but works as a sanity check.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keeping the cache around after read-tree is only one part of the
optimisation opportunities. In order to share the cache between program
instances, we need to write the TREE extension to the index.

Do so, taking the opportunity to rename 'entries' to 'entry_count' to
match the name given in the format description. The included test is
rather trivial, but works as a sanity check.
</pre>
</div>
</content>
</entry>
<entry>
<title>index: add tests for the tree cache</title>
<updated>2014-10-10T17:35:19+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-07-11T09:48:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ee4db1c16eda223477d4723724471d26ed188831'/>
<id>ee4db1c16eda223477d4723724471d26ed188831</id>
<content type='text'>
These test that we invalidate at the right levels and that we remove the
tree cache when clearing the index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These test that we invalidate at the right levels and that we remove the
tree cache when clearing the index.
</pre>
</div>
</content>
</entry>
</feed>
