<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/apt-pkg/contrib/string_view.h, branch 1.7.0_alpha1</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=1.7.0_alpha1</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=1.7.0_alpha1'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2017-07-12T11:57:51Z</updated>
<entry>
<title>Reformat and sort all includes with clang-format</title>
<updated>2017-07-12T11:57:51Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2017-07-12T11:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=87274d0f22e1dfd99b2e5200e2fe75c1b804eac3'/>
<id>urn:sha1:87274d0f22e1dfd99b2e5200e2fe75c1b804eac3</id>
<content type='text'>
This makes it easier to see which headers includes what.

The changes were done by running

    git grep -l '#\s*include'  \
        | grep -E '.(cc|h)$' \
        | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/'

To modify all include lines by adding a space, and then running
./git-clang-format.sh.
</content>
</entry>
<entry>
<title>Compare size before data when ordering cache bucket entries</title>
<updated>2016-11-22T21:58:19Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-09-27T16:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=f378b41f9ab2493bcbc5892d482b18826b0b84c0'/>
<id>urn:sha1:f378b41f9ab2493bcbc5892d482b18826b0b84c0</id>
<content type='text'>
This has the effect of significantly reducing actual string
comparisons, and should improve the performance of FindGrp
a bit, although it's hardly measureable (callgrind says it
uses 10% instructions less now).
</content>
</entry>
<entry>
<title>Set hidden visibility for StringView</title>
<updated>2016-03-24T14:16:00Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-03-24T14:11:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=5359675e6c7684bd4153adaf3cc0f59442cdc291'/>
<id>urn:sha1:5359675e6c7684bd4153adaf3cc0f59442cdc291</id>
<content type='text'>
This avoids templates using StringView to be exported, such as
std::vector&lt;StringView*&gt;::emplace_back().

Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>string_view: Drop constexpr constructor for standard compatibility</title>
<updated>2016-01-15T18:18:29Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-01-15T18:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=ef6cc0e22a2933e0e36bc260179fdf0b86f9ac26'/>
<id>urn:sha1:ef6cc0e22a2933e0e36bc260179fdf0b86f9ac26</id>
<content type='text'>
APT::StringView is supposed to be a temporary measure, until support
for the standardized string_view is widely available. Introducing
additional unstandardized features just makes porting to the
standard version harder.

The constexpr constructor also won't have any real effect on most
systems, as the compiler will happily optimise the strlen() call
away for constant strings.

Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>provide a constexpr char[] overload for APT::StringView</title>
<updated>2016-01-15T17:19:16Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2016-01-15T16:11:19Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=ec6a4a831e57834bf4d7abb91fc8b298c2fbfcc2'/>
<id>urn:sha1:ec6a4a831e57834bf4d7abb91fc8b298c2fbfcc2</id>
<content type='text'>
The commit also adds a few trivial tests

Git-Dch: Ignore
</content>
</entry>
<entry>
<title>return correct position in APT::StringView::(r)find</title>
<updated>2016-01-15T17:19:16Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2016-01-15T14:57:32Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=9b2845e1691b5587d731c3dae9f695ca2db0be1a'/>
<id>urn:sha1:9b2845e1691b5587d731c3dae9f695ca2db0be1a</id>
<content type='text'>
The position returned is supposed to be the position of the character
counted from the start of the string, but if we used the substr calling
overloads the skipped over prefix wasn't considered. The pos parameter
of rfind had also the wrong semantic.
</content>
</entry>
<entry>
<title>operator==(char*, StringView) use StringView.operator==</title>
<updated>2016-01-08T01:33:36Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-01-08T01:32:23Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=0cc8987abf9f25c458833a0479bc4cb11b405e16'/>
<id>urn:sha1:0cc8987abf9f25c458833a0479bc4cb11b405e16</id>
<content type='text'>
Use the same path for both comparisons, as the operator== path
is faster than just calling compare() - it avoids any comparison
if the size differs.

Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>StringView: rfind: pos should be end of substr, not start</title>
<updated>2016-01-07T19:23:48Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-01-07T19:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=0e58689ae76e8155bc1f418323aa9e56c34187f6'/>
<id>urn:sha1:0e58689ae76e8155bc1f418323aa9e56c34187f6</id>
<content type='text'>
Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>StringView: pos argument default should be npos</title>
<updated>2016-01-07T19:21:16Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-01-07T19:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=eee8ee176a5ae3377cc601eb68cdb576b8076761'/>
<id>urn:sha1:eee8ee176a5ae3377cc601eb68cdb576b8076761</id>
<content type='text'>
Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>StringView::rfind(): Call rfind() instead of find() on subst</title>
<updated>2016-01-07T19:01:16Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-01-07T19:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=8cfd5495e30533e2ab708c8dc875f1c6f29650fd'/>
<id>urn:sha1:8cfd5495e30533e2ab708c8dc875f1c6f29650fd</id>
<content type='text'>
Thanks: Niels Thykier for reporting on IRC
Gbp-Dch: ignore
</content>
</entry>
</feed>
