Doc #80399 [Ver->Csd]: Using PharData to create TAR files is super slow (at least 10x slower)
| From: | phpdocbot@php.net | Date: | Mon, 28 Dec 2020 15:16:15 +0000 |
| Subject: | Doc #80399 [Ver->Csd]: Using PharData to create TAR files is super slow (at least 10x slower) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18333@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80399&edit=1
ID: 80399
Updated by: phpdocbot@php.net
Reported by: maggus dot staab+php at googlemail dot com
Summary: Using PharData to create TAR files is super slow (at
least 10x slower)
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: PHAR related
Operating System: windows10x64
PHP Version: 7.3.24
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b3d23714c285b70f6a033017aa0d5ad954e2c44c
Log: Fix #80399: Using PharData to create TAR files is super slow (at least 10x slower)
Previous Comments:
------------------------------------------------------------------------
[2020-12-28 15:14:40] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=352243
Log: Fix #80399: Using PharData to create TAR files is super slow (at least 10x slower)
------------------------------------------------------------------------
[2020-12-14 15:37:07] cmb@php.net
The same happens for ::addFromString() and ::offsetSet().
::buildFromDirectory() and ::buildFromIterator() don't have that
issue, so changing to documentation problem.
------------------------------------------------------------------------
[2020-12-14 15:22:26] cmb@php.net
I can confirm your findings with current PHP-7.4 HEAD. The problem
is that each PharData::addFile() flushes the archive, i.e.
completely writes it back to disk. That takes time...
------------------------------------------------------------------------
[2020-11-23 12:33:59] maggus dot staab+php at googlemail dot com
thx for coming back to me.
I justed did a blackfire profile and measured the non-profiled timings on a few more servers and
php-versions.
have a look at the readme: https://github.com/staabm/php-phardata-benchmark
I don't have a server at my disposal where the latest php version is available.
everything I have is ubuntu LTS bound
------------------------------------------------------------------------
[2020-11-23 12:02:42] cmb@php.net
Could you please check the performace for PHP 7.4.12? And also,
could you check that with the blackfire extension?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=80399
--
Edit this bug report at https://bugs.php.net/bug.php?id=80399&edit=1