Bug 34055 - XMLHttpRequest incredibly slow on Windows 7
Summary: XMLHttpRequest incredibly slow on Windows 7
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P1 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 04:46 PST by Alexander Voloshyn
Modified: 2023-03-27 08:25 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Voloshyn 2010-01-24 04:46:24 PST
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.
Comment 1 Alexey Proskuryakov 2010-01-24 20:21:52 PST
Does async XMLHttpRequest (constructed with third argument == true) work well?

Do you have an antivirus installed? Does disabling it improve performance?
Comment 2 Alexander Voloshyn 2010-01-24 22:20:04 PST
(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.