PHP 7.1 Magento 2.3.2-p2
bin/magento
:
global $mageStart;
$mageStart = microtime(true);
\Firebear\ImportExport\Model\Import\Product::saveProducts
global $mageStart;
echo "Time until saveProducts " . (microtime(true) - $mageStart) . PHP_EOL;
(No breakpoints set before that point)
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=0
xdebug.remote_host=127.0.0.1
xdebug.collect_params=0
xdebug.max_nesting_level=500
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"//localhost:8091?message=%f:%l\", true); rq.send(null);"
xdebug.var_display_max_depth=5
Time until saveProducts 2.23s
Time until saveProducts 228.93s
Time until saveProducts 43.68s
@derickr
Works now ...
Beware I am on a different computer now, and have different old breakpoints (which are of course not hit before the command to get the timing).
So overall it's much faster:
other machine (self-laptop) / Different Set of (not-hit) Breakpoints
PHP 7.1, no xdebug, Time until saveProducts 1.9
PHP 7.1, xdebug Version: 2.9.0+2.5.5-1+ubuntu18.04.1+deb.sury.org+1 Time until saveProducts 78.7
PHP 7.1, xdebug Version: 2.7.2+2.5.5+2.8.0~beta2-1+ubuntu16.04.1+deb.sury.org+11 Time until saveProducts 47.97
PHP 7.1, xdebug git xdebug_2_9 a410c7847f6c8d5a15aad7dbaa55f256054b1f94 Time unitl saveproducts: 48.46
And it looks like your changes have a very good effect. Great!
I am wondering if there are any other settings to speed up Xdebug? Factor 25 is still a lot in "slow systems" like Magento ;)
I usually have buttons to phpenmod / phpdismod Xdebug in my IDE to workaround this.