Version: (using KDE KDE 3.5.3) Installed from: Debian testing/unstable Packages OS: Linux The http-ioslave makes a authentication cache-lookup for every url it tries to fetch. Most pages doesn't use any authentication hence it is totally waste of time and when you have a page with 100s of objects(images) it will do a lookup for each and every one. This makes kded take 20-40% of my CPU (400MHz) while loading a single page(This goes to 0% with the patch). The time is spent i kpasswdserver and if I remember correctly most of that time was in the kwallet-backend which probably could be faster.
Created attachment 17161 [details] Patch A patch to fix the problem. I don't know the http code very well so it might not be correct but since it such a serious performance bug I think it should be fixed somehow.
Doesn't this patch create an extra round-trip to the remote server for every object on pages that _do_ require authentication?
Probably. I will try to make a better one in a couple of weeks.
Authentication pre-lookup is necessary to combat unnecessary round-trip to a remote server when authentication is required and is allowed per RFC 2616. The only way around this is to make this optional for those that don't mind the round trip.