Performance issues with Local on Windows 10

Tried to fully reinstall Local and delete my sites to check why my previous TTFB in Windows was around 3-4s even for a new barebones default site. Turns out even reinstalling wasn’t helping as it is somehow tied to the default php.ini file config issue as stated by @hpsc.

Setup:

OS: Windows 10 Pro build 19042.746
PHP: 8.0.0
MySQL: 8.0.16
Apache: 2.4.43

In my end, I was able to reduce TTFB to 40-50ms just by commenting out the zend_extension = php_xdebug.dll part of the config file php.ini. I didn’t have to add the additional opcache options or add the folders to windows defender like what is said in @hpsc’s fix.

Sorry, but would anyone know why we need to comment php_xdebug to reduce the TTFB?