Gerhard Strößner created NETBEANS-4088:
------------------------------------------
Summary: Editing large PHP files in Netbeans 11.* is deadly slow
Key: NETBEANS-4088
URL: https://issues.apache.org/jira/browse/NETBEANS-4088
Project: NetBeans
Issue Type: Improvement
Components: php - Editor
Affects Versions: 11.2, 11.1, 11.0, 11.3
Environment: System 1:
Linux x64 4.12.14
java-11-openjdk ver. 11.0.6.0
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
16 GB RAM
project folder on local SSD
System 2:
Linux x64 5.3.18
java-11-openj9 ver. 11.0.6.0
Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
32 GB RAM
project folder on NAS with 1GBit ethernet link; very low traffic on network and
very low load on NAS
Reporter: Gerhard Strößner
Attachments: test200.php
Since NB 11.0, editing large PHP files (>3000 lines) is deadly slow, especially
working at the end of the file. The number of open files, the size of the
project or the complexity of the project does not matter. When having only two
open files, one with 200 lines, one with 6000 lines, editing and moving around
in the smaller file is good. Doing the same things on the larger file is a
nightmare.
To test this, I created a basic PHP file with the line
{code:java}
$test = random_bytes(56);{code}
and copied this line 200x, 500x, 2000x, 6000x
Slowness is noticeable starting at about 2000 lines, however it is not critical
at this point. Try 6000 lines and you wait even jumping between two lines, at
file's end it takes 1-2 seconds to change the line up or down. There is a
massive rise in system load on all processor cores.
Open the very same files in NB 10.0 does not show this slowness.
Raising the heap max. size to 4GB for NB 11.x does not make any difference.
I have this effect on two systems (see "Environment").
NB 10.0 and 11.x have the same plugins installed. Deactivating some unused
plugins in 11.x does not help. Changing themes does not help.
There are no further startup problems or delays, no stability issues.
I know that files this size should be broke into smaller parts. But it is a
quite large project, so this can be done only in small steps.
Please let me know if you need more information.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists