I recently noticed this interesting post regarding performance: https://magento.stackexchange.com/a/124/2380
So according to the OP, it seems like removing the references to Varien_Profiler
in the Magento core files (around 500 references in 1.9.2.4) could speed up the performance by up to 5%
So I was wondering if anyone has ever done that ?
If so, apart from the command line the OP posted:
grep -l "Varien_Profiler" * -R > profiler.txt
for x in `cat profiler.txt`
do
sed -i '/Varien_Profiler/s/^/\/\//' $x
done
Or as one of the comments say:
find . -type f -exec grep -qF 'Varien_Profiler' {} \; -exec sed -i '/Varien_Profiler/d' {} \;
Is there anything else that needs to be done ? The OP also said:
You might need to adjust the file /lib/Varien/Profiler.php manually afterwards.
Also, I was wondering apart from not being able to use the profiler, is there any downside to this operation ? I'm talking about possible code issues related to the profiler that could possibly break the system.