且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何加快速度?

更新时间:2023-01-31 08:48:07

It's probably the getimagesize function - it is going and fetching every image on the page so it can determine the size. Maybe you can write something with curl to get the header only for Content-size (though, actually, this might be what getimagesize does).

At any rate, back in the day I wrote a few spiders and it's kind of slow to do, with internet speeds better than ever it's still a fetch for each element. And I wasn't even concerned with images.

相关阅读

技术问答最新文章