I need some changes to an existing website. I have a website built with php and need help optimising a function that is very inefficient. A function takes 11-40 seconds to calculate depending on the amount of data processed. The function itself has a lot of nested foreach loops, looping through nested arrays, need someone who would know how to rewrite the function to improve performance and calculation time up to 5 seconds max or someone who could guide me to the right direction on how to achieve that
Hi, Is it possible to take a look at this function? It's really hard to estimate the amount of work required without seeing the code. Kind regards, Chris.