Reputation:
Hello I recently tried Bing API v7 from India and it takes around 1.5 seconds at avg , then I tried from Singapore and London and the avg was 1.1 seconds , can you suggest me optimization tips , I am using curl php 7 , and also the best location for the server
Upvotes: 0
Views: 275
Reputation: 2513
I see, so i've searched around and found that this could also be caused by PHP 7 causing a high load on the server's CPU, if you're on a linux platform, try using the bellow commands: echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag This is the full post: cURL is very slow on PHP 7 but not PHP 5
can you suggest me optimization tips , I am using curl php 7 , and also the best location for the server:
I'd suggest considering the use of a CDN, especially if you are using your app on a global level:
"APIs and developer tools give you the performance, reliability, and security you need to build global applications. Programmatic access gives customers flexibility to optimize features to provide the highest levels of availability and performance.Speed matters. Content Delivery Network sends audio, video, applications, images, and other files faster and more reliably to customers by moving content closer to your users, which gives your users an improved experience." More info can be found here:https://azure.microsoft.com/en-us/services/cdn/
Upvotes: 0