I have an application that uses cURL to grab the contents of several websites. I'd like to optimize this somehow. Would it be possible to implement a singleton design pattern and somehow feed curl the URLs I need contents for at certain intervals -- such that I only instantiate it once?
Right now, I setup and destroy connections for each call. Sample code would be highly appreciated.
Thanks.