Improving MHT Download Performance with Caching

Question:
I’m spidering search results and trying to archive hundreds of pages to MHT’s.  I’m testing your control and found it much slower than Internet Explorer. Also, while I’m not doing this now, is this control threadsafe if I ever wanted to try that to improve performance?

Answer:

Internet Explorer is faster because it uses multiple threads, and because it uses disk caching.  Both can be accomplished using Chilkat MHT.

First, the easy answer:  Yes, the MHT component/library is thread-safe.  Of course, each thread should use it’s own instance of an MHT object.  Also, the disk-caching is thread-safe.  Multiple threads can be updating files in the same caching directory without interfering with each other.

Implementing disk caching with MHT is easy.  It’s simply a matter of setting a few properties and telling the component the path of the cache directory.  Here are examples:

ASP: Download Web Page to MHT with w/ Disk Cache

SQL Server: Download Web Page to MHT with w/ Disk Cache

C#: Download Web Page to MHT with w/ Disk Cache

C++: Download Web Page to MHT with w/ Disk Cache

MFC: Download Web Page to MHT with w/ Disk Cache

C: Download Web Page to MHT with w/ Disk Cache

Delphi: Download Web Page to MHT with w/ Disk Cache

Visual FoxPro: Download Web Page to MHT with w/ Disk Cache

Java: Download Web Page to MHT with w/ Disk Cache

Perl: Download Web Page to MHT with w/ Disk Cache

PHP: Download Web Page to MHT with w/ Disk Cache

Python: Download Web Page to MHT with w/ Disk Cache

Ruby: Download Web Page to MHT with w/ Disk Cache

VB.NET: Download Web Page to MHT with w/ Disk Cache

Visual Basic: Download Web Page to MHT with w/ Disk Cache

VBScript: Download Web Page to MHT with w/ Disk Cache