Bug 129808 - Quanta slows down and sometimes crashes when editing large javascript files
Summary: Quanta slows down and sometimes crashes when editing large javascript files
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Other
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-25 21:57 UTC by Rafael Vega
Modified: 2006-09-09 19:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
one of the Javascript files that is causing trouble (27.15 KB, text/javascript)
2006-07-27 17:26 UTC, Rafael Vega
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Vega 2006-06-25 21:57:47 UTC
Version:           3.5.3 (using KDE KDE 3.5.3)
Installed from:    Compiled From Sources
Compiler:          gcc 4.0.1  Installed with apple's xtools. powerpc-apple-darwin8-gcc-4.0.1
OS:                OS X

This bug is very similar to bug number 99370. I decided to repost it because that one is marked as resolved.

When editing large javascript files, Quanta becomes very slow, irresponsibe and sometimes crashes. Most of the times it is imposible to keep typing due to the delay and generally I just can't edit javascript files. The delay is considerably longer with certain files (I can send one).

Is it possible to turn off the parser for javascript files and treat them as plain text? I tried changing the parser refresh frequency to 0 in Settings->Configure Quanta->Parser and to turn off the sintax highlighting but that didn't work.

Do you suggest any other work-around for this while the bug is fixed?

FYI: I am running quanta on MacOsX 10.4.6 using Apple's X11, compiled from source with gcc 4.0.1 using the fink commander. The fink commander also compiled and installed from binaries lots of other KDE stuff before compiling quanta. I can find out what packages it compiled and installed if you think it is relevant.

Quanta is really the best editor I have tried and it is awesome to be able to run it on MacOsX. Many Thanks!!!
Comment 1 roland manser 2006-07-07 22:14:27 UTC
Quanta 3.5.1 on Suse 10.1, simple HTML file, 1000 lines 56kBytes:
Editing towards the end of the file feels like you work through
a 300 baud modem. Responds to keystrokes within 2-3 seconds on 
my 1.2Mhz PIII machine. 

Roland
Comment 2 Claudiu Cismaru 2006-07-27 10:25:21 UTC
I have 2000 lines Javascript file and after typing a word it takes about 10 seconds to respond and cursor appears. It's VERY slow :(

Processor: 1.7GHz, 512M RAM, Quanta 3.5.1 from SUSE 10.1.
Comment 3 András Manţia 2006-07-27 11:49:45 UTC
Can you try with 3.5.3? Also if you could send me the file (even if in 
private) it would help me to find where is the problem.
Comment 4 Rafael Vega 2006-07-27 17:26:11 UTC
Created attachment 17140 [details]
one of the Javascript files that is causing trouble
Comment 5 Malix 2006-09-08 01:54:30 UTC
I have the same problem on my machine pentium IV 3,2 GHz 1 GB of RAM and Ubuntu 6.04. When I edit a big javascript file (2142 row of code) quanta is very slow. Responds to keystrokes within 1-2 seconds.
Comment 6 András Manţia 2006-09-09 19:11:12 UTC
The problem is solved for 3.5.5. The reason of slowness was that the 
javascript file was treated as (X)HTML, and the XML parser was slow 
because the document didn't really had XML tags. The file detection is 
now improved and the "empty" DTD is assigned for unknown file types 
(like JavaScript in this example). As a workaround for previous 
versions you can manually select the empty DTD for JavaScript files.
As for the slowness for a HTML file from reply #1, if you can still 
reproduce the problem, open a separate bugreport and attach the file to 
it.