<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opentracker/tests/t_vector.c, branch v2.2.1</title>
<subtitle>An open and free bittorrent tracker
</subtitle>
<id>https://erdgeist.org/gitweb/opentracker/atom?h=v2.2.1</id>
<link rel='self' href='https://erdgeist.org/gitweb/opentracker/atom?h=v2.2.1'/>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/'/>
<updated>2026-11-07T18:39:01Z</updated>
<entry>
<title>Unify the peerlists for v4 and v6</title>
<updated>2026-11-07T18:39:01Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-07T18:39:01Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=589cb500fa5a6df13fa9634d0071922ec11fce17'/>
<id>urn:sha1:589cb500fa5a6df13fa9634d0071922ec11fce17</id>
<content type='text'>
This commit finishes what started with unifying v4 and v6 trackers, from then on, torrents
carried a peer list per family, with obvious redundancies. With the race to save memory,
these became burdening enough that now these peerlist pointers have been moved into a
single struct, holding both v4 and v6 peers in their respective ot_vectors, so the per-
torrent cost shrunk by another pointer's size.

Each peerlist also lost its peer count cache, as in most cases, it's trivial to load it
directly from the ot_vector's entry count. The seed counts that were kept per family only
to be aggregated later for every consumer, are also merged now.

Total savings depend on the tracker's actual load. In some corner cases, where only one
address family dominates the torrents, we actually use a few bytes more in the ot_vector
for the absent family, but even that mostly becomes noise: before it actually adds to the
memory load, the peer payload will be the deciding factor.

Most wins are on what often is experienced on trackers: A long tail of abandoned torrents
now needs eight fewer bytes, slipping into a smaller allocation unit on glibc's allocator.
</content>
</entry>
<entry>
<title>Sweep the obsolete CVS Id keyword out of the tree</title>
<updated>2026-11-02T15:55:53Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-02T15:55:53Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=28d6bf03e1bb8c38fb7e09ade3c5a9c58d68182e'/>
<id>urn:sha1:28d6bf03e1bb8c38fb7e09ade3c5a9c58d68182e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid an UB of adding NULL + 0 by keeping an offset instead of advancing the pointer into a vector struct</title>
<updated>2026-10-26T22:25:21Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-10-26T22:25:21Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=05efe6bde3a884d4fcca88a227efaeee2c7e3b8a'/>
<id>urn:sha1:05efe6bde3a884d4fcca88a227efaeee2c7e3b8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>First run of making variable names more readable</title>
<updated>2026-10-26T15:59:39Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-10-26T15:59:39Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=6871825565d0ba24436dbd5b92cc09e02f93af6a'/>
<id>urn:sha1:6871825565d0ba24436dbd5b92cc09e02f93af6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up peer re-distribution between single bucket vectors and bucket lists, add tests</title>
<updated>2026-10-25T12:00:17Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-10-25T12:00:17Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=632960a33eb8d23925b2bbef24d5065de7280aef'/>
<id>urn:sha1:632960a33eb8d23925b2bbef24d5065de7280aef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a unit test harness and a first set of tests</title>
<updated>2026-10-23T23:17:50Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-10-23T23:17:50Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=f24ec48b27d4cb8dd0555840206dedbb45f1423c'/>
<id>urn:sha1:f24ec48b27d4cb8dd0555840206dedbb45f1423c</id>
<content type='text'>
make check builds tests/runner from the modules that link without the
io subsystem and runs it.
</content>
</entry>
</feed>
