Summary: | konqueror html w/ javascript has high (80%) cpu usage | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Michael Simmons <msimmons> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maksim |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | the javascript in its entirity |
Description
Michael Simmons
2005-12-07 03:14:44 UTC
Created attachment 13795 [details]
the javascript in its entirity
LOL. That JS has no chance whatsoever of working on mozilla. And the CPU usage in konqueror? it fills the error log. There was some other bug report about it, I think I'll put in a cap I don't know enough about javascript one way or the other, I'll go ahead and close this if it isn't of any help. No, this is very helpful, I am constantly bugging users in #kde that I don't have enough performance problems to fix :-). And the JavaScript on the page, and the reason for our slowness gave me a good laugh. Thanks again for reporting this Ok, after re-reading the comments I understand what you meant by filling the error log. I was wondering why there was all the cpu activity but the page was visually static. I'll leave it to someone who know what they are doing to close the bug. This is the first time I've reported a bug. SVN commit 501092 by orlovich: Make this thing actually update incrementally and limit to 2K messages Fixes #117834 (I think there was some other report, too, but I can't find it) BUG:117834 M +5 -5 kjserrordlg.ui.h --- branches/KDE/3.5/kdelibs/khtml/kjserrordlg.ui.h #501091:501092 @@ -10,14 +10,14 @@ void KJSErrorDlg::init() { - _errorText->setText("<qt>"); + _errorText->setTextFormat(QTextEdit::LogText); + _errorText->setMaxLogLines(2048);//Limit to about 2K errors so we don't use much CPU } void KJSErrorDlg::addError( const QString & error ) { - // Argh why doesn't QText* interpret html tags unless I use setText()? - // This is really inefficient! - _errorText->setText(_errorText->text() + "<br>\n" + error); + + _errorText->append(error); } void KJSErrorDlg::setURL( const QString & url ) @@ -28,5 +28,5 @@ void KJSErrorDlg::clear() { _errorText->clear(); - _errorText->insert("<qt>"); + init(); } |