Lag fits while editing very large Java files.

I've inherited a codebase with a certain Java source file that's just short of 15000 lines.

This makes even scrolling through the file "syrupy", which was helped by turning off inspections for the file. However, actually editing it causes IDEA to become unresponsive at 100% CPU usage for several seconds. (After a short delay, roughly half a second after the first keystroke.)

IDEA still receives keystrokes while in the lag burst and seems to handle them, and it never failed to recover and hang up completely. Still, editing this file (sod's law: it has to be edited for anything nontrivial) is extremely painful.

Can whatever IDEA is doing with the file that's so resource-consuming be turned off per-file?

1 comment
Comment actions Permalink

Please, create JIRA issue with cpu snapshot captured during editing of
the file.

David Vallner wrote:

I've inherited a codebase with a certain Java source file that's just short of 15000 lines.

This makes even scrolling through the file "syrupy", which was helped by turning off inspections for the file. However, actually editing it causes IDEA to become unresponsive at 100% CPU usage for several seconds. (After a short delay, roughly half a second after the first keystroke.)

IDEA still receives keystrokes while in the lag burst and seems to handle them, and it never failed to recover and hang up completely. Still, editing this file (sod's law: it has to be edited for anything nontrivial) is extremely painful.

Can whatever IDEA is doing with the file that's so resource-consuming be turned off per-file?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.