I have a web-based application where webview is used to present data and simple local server to communicate with webview via XMLHttpRequest. I do following: var request = new XMLHttpRequest(); request.open("GET","http://localhost:20042/" + command, false); try { request.send(null); } catch(err) { return err; } This way I pass methods to be called on C# side from javascript. It all works perfectly and lightning fast on Windows XP, I can make dozens of method calls in a split second. But on Windows 7 one request takes couple seconds (on my 8-core Mac Pro) and this makes WebKit completely unusable and stopper for my application.
Does async XMLHttpRequest (constructed with third argument == true) work well? Do you have an antivirus installed? Does disabling it improve performance?
(In reply to comment #1) > Does async XMLHttpRequest (constructed with third argument == true) work well? > No, that did not work and anyway I need it to be sync as I expect to get the result of method execution in sync way. > Do you have an antivirus installed? Does disabling it improve performance? I have Microsoft Security Essentials installed on Windows 7, turning off real time protection does not change anything for both cases sync and async. The computer has high performance (7.7 windows performance index), so antivirus running does not slow down performance at all. Also on my Windows XP installation I have Kaspersky Internet Security installed, but still XMLHttpRequest works lightning fast.