Re: Source tar.gz's extract slowly on some platforms
| From: | Sara Golemon | Date: | Sat, 22 Apr 2017 16:30:12 +0000 |
| Subject: | Re: Source tar.gz's extract slowly on some platforms | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98846@lists.php.net to get a copy of this message | ||
On Sat, Apr 22, 2017 at 8:38 AM, Thomas Hruska <thruska@cubiclesoft.com> wrote:
> It looks like ~700 files are added each year to whatever new version is
> released. The bulk of the new files seem to involve the test suite.
>
I certainly hope the vast bulk of that is tests. :D
> I'm only pointing out something I've noticed. I'm not compiling anything
> when I just want to search/view the latest source code nor do I run 'make
> test' when deploying, so the test suite is somewhat superfluous for most of
> my use-cases. Test suites are useful and important, which makes this an
> observation unless, of course, this prompts someone to go forth and do
> something (whatever that might be).
>
I hear what you're saying in terms of a "browsing source code" use
case, but given availability of tools like lxr.php.net and of course
github.com/php/php-src the scope of that use case feels quite small
compared to a one-time decompression cost, even at seven minutes.
But if your workflow is your workflow and tarballs are it, consider
using the
--exclude directive to tar.
Example: tar -zxf php-7.1.0.tgz --exclude=tests
-Sara