Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 Mar : InternetReadFile much slower than IE
| Subject: | InternetReadFile much slower than IE |
| Posted by: | "meanfox" (codemag..@gmail.com) |
| Date: | 21 Mar 2007 23:15:16 |
Hi,
When I use IE to download a test file it takes about 3 seconds (non-
cached).
My own WinInet code using InternetReadFile takes about 7 seconds (also
non-cached).
This is repeatable. It is a 644K file. This is on XP SP2 with IE7.
Can anyone explain this and tell me how to speed up my WinInet
download? I thought IE used WinInet?
I have experimented with a few things that made no difference:
* Running synchronously vs running in a thread
* Downloading in 1 call to InternetReadFile vs. downloading many 1K
chunks
Please advise!
Tom