开发者

PHP | GD Functions or Curl? Which is better in terms of memory util and load time?

开发者 https://www.devze.com 2023-02-25 03:46 出处:网络
I am using both GD and Curl(one or other) for downloading remote jpeg images to my server. I just want a quick suggestion on which method to use? Which method takes less system r开发者_Go百科esources?

I am using both GD and Curl(one or other) for downloading remote jpeg images to my server. I just want a quick suggestion on which method to use? Which method takes less system r开发者_Go百科esources?


To get load time try to create complex image with both of them (GD and CURL), set microtime at the start of each operation and calculate time-difference at the end. Just do a test at your own.

About memory usage (system resources), I'm not so sure, but I think there's no such big difference.

For me personally, GD and Curl are equal.

0

精彩评论

暂无评论...
验证码 换一张
取 消