[Webkit-unassigned] [Bug 39717] New: very slow QVariant QWebFrame::evaluateJavaScript(const QString& scriptSource) method.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 26 03:06:20 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=39717
Summary: very slow QVariant QWebFrame::evaluateJavaScript(const
QString& scriptSource) method.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: stawel at gmail.com
Hi all,
I noticed that the QWebFrame method evaluateJavaScript(const QString& scriptSource) is very slow.
consider this code:
class MyClass : public QWebFrame {
void do() {
QString script = QString(" \
var main = document.getElementById('main'); \
var newDivElement = document.createElement('div'); \
main.appendChild(newDivElement); ");
//first loop execution time > 5 minutes !!!!!
for(int i=0;i<500;i++)
evaluateJavaScript(script);
//second loop execution time < 0.1 sec
for(int i=0;i<500;i++)
evaluateJavaScript(script + "false;");
}
}
it looks like that the calculation of the result (JSC::Bindings::convertValueToQVariant)
is very slow.
maybe a lazy calculation would be better.
Best Regards
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list