<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ccache.git/src/Util.cpp, branch master</title>
<subtitle>github.com: ccache/ccache
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/'/>
<entry>
<title>refactor: Move Util::parse_size to util</title>
<updated>2023-03-04T09:10:20+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2023-02-21T20:34:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=66c9c76151497638f1be2bb05ccc2d58d075fc2d'/>
<id>66c9c76151497638f1be2bb05ccc2d58d075fc2d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: Move Util::format_{human,parsable}_* to util</title>
<updated>2023-03-04T09:10:20+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2023-02-20T20:12:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=d62b9df5546bee65795188b4e4cbd8dc872887d7'/>
<id>d62b9df5546bee65795188b4e4cbd8dc872887d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: Enable and fix some more warnings</title>
<updated>2023-03-04T09:10:18+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2023-02-27T18:22:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=35ab50c4ad632f1404312d08c1338bb83afbf077'/>
<id>35ab50c4ad632f1404312d08c1338bb83afbf077</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: Add quotes around arguments with space in logged command lines</title>
<updated>2023-02-03T13:22:20+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2023-02-02T19:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=306aa8eebfe7f3442c176ed5ebd42f8767b0125c'/>
<id>306aa8eebfe7f3442c176ed5ebd42f8767b0125c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: Cache path relativization in preprocessed output</title>
<updated>2023-01-29T20:30:59+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2023-01-29T12:12:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=147ea804a27afe96899a2f9fe010b91faa3eacc5'/>
<id>147ea804a27afe96899a2f9fe010b91faa3eacc5</id>
<content type='text'>
After PR #1033 and [1], a stat call is made each time a note about an
include file is found in the preprocessed output. Such calls are very
performant on Linux (and therefore unnoticed until now), but apparently
costly on Windows.

Fix this by caching the calculation of relative paths in
process_preprocessed_file.

[1]: 9a05332915d2808f4713437006b3f7c812d9fd74

Closes #1245.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After PR #1033 and [1], a stat call is made each time a note about an
include file is found in the preprocessed output. Such calls are very
performant on Linux (and therefore unnoticed until now), but apparently
costly on Windows.

Fix this by caching the calculation of relative paths in
process_preprocessed_file.

[1]: 9a05332915d2808f4713437006b3f7c812d9fd74

Closes #1245.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: Fix matching of base directory for MSVC</title>
<updated>2022-12-23T09:56:43+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel.rosdahl@maxar.com</email>
</author>
<published>2022-12-21T12:16:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=a68cae9021a445550afdcd1bcce3cb3352c3c8f9'/>
<id>a68cae9021a445550afdcd1bcce3cb3352c3c8f9</id>
<content type='text'>
The base directory will now match case-insensitively with absolute paths
in preprocessed output, or from /showIncludes in the depend mode case,
when compiling with MSVC.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The base directory will now match case-insensitively with absolute paths
in preprocessed output, or from /showIncludes in the depend mode case,
when compiling with MSVC.
</pre>
</div>
</content>
</entry>
<entry>
<title>enhance: Add Util::format_human_readable_diff</title>
<updated>2022-11-27T20:33:50+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2022-11-14T08:55:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=cf78bc995e765767b42942a834fcd7e81b392fd7'/>
<id>cf78bc995e765767b42942a834fcd7e81b392fd7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: Improve Util::format_human_readable_size for small sizes</title>
<updated>2022-11-27T20:33:49+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2022-11-07T20:04:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=6e2ffd10df8b71c775925b4bd54838a9181fc328'/>
<id>6e2ffd10df8b71c775925b4bd54838a9181fc328</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: Fall back to emulation for unsupported posix_fallocate (#1222)</title>
<updated>2022-11-14T18:53:50+00:00</updated>
<author>
<name>Oleg Sidorkin</name>
<email>osidorkin@gmail.com</email>
</author>
<published>2022-11-14T18:53:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=ec77044ea62bab253e62ee5aaf2646a2ee551004'/>
<id>ec77044ea62bab253e62ee5aaf2646a2ee551004</id>
<content type='text'>
posix_fallocate can return EINVAL if filesystem doesn't support it. Fall back to emulation in this case.

E.g. ZFS does so on FreeBSD (haven't tested with ZFS on linux).

This fixes Utill::fallocate unit tests on ZFS.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
posix_fallocate can return EINVAL if filesystem doesn't support it. Fall back to emulation in this case.

E.g. ZFS does so on FreeBSD (haven't tested with ZFS on linux).

This fixes Utill::fallocate unit tests on ZFS.</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: Avoid changing loop variable in body of for loop</title>
<updated>2022-11-10T12:20:26+00:00</updated>
<author>
<name>Joel Rosdahl</name>
<email>joel@rosdahl.net</email>
</author>
<published>2022-11-09T20:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ccache.git/commit/?id=e031c2170ba9ebeaadf240c22b8fe9f8be13010b'/>
<id>e031c2170ba9ebeaadf240c22b8fe9f8be13010b</id>
<content type='text'>
This is to please CodeQL's "For loop variable changed in body" check.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is to please CodeQL's "For loop variable changed in body" check.
</pre>
</div>
</content>
</entry>
</feed>
