Caret movement in IDEA X very slow
I'm using a the idea/100.46 build and have to say that the editor feels very
sluggish when moving the caret in a small Java file (< 200 lines).
What can I do to improve the responsiveness?
Tom
Please sign in to leave a comment.
just wondering where you got one from, they've only published 99.18 today for us, mere mortals
:)I'm using the tag "idea/100.46" from the IDEA Git repository.
BTW, I compare the editor performance with the one from IDEA 8.0.4 and 9.0.3.
Tom
BTW, I compare the editor performance with the one from IDEA 8.0.4 and 9.0.3.
Tom
Hi Tom,
The right way to go is to submit dedicated ticket to IJ tracker, attach problem file and performance snapshot to it and describe what exact caret moves did you perform (e.g. horizontal within the single row, vertical only etc).
Denis
What's that?
How can I log performance like in older IDEA versions?
Tom
BTW, the problem happens with every plain Java file with vertical and
horizontal caret movements (press and hold the cursor key to see the caret
only on certain locations).
Tom
This was the link to online document. I believe you can see it if you open current thread at browser.
Denis
I am unable to reproduce the problem at local environment (horizontal and vertical cursor changes inside plain text file of ~200 lines).
That's why I asked for the problem file and CPU snapshot.
Denis
When I add the line
-agentlib:yjpagent
to the IDEA_HOME/bin/idea.exe.vmoptions and try to start IDEA using the
IDEA_HOME/bin/idea.bat (only way if built from sources, because there is no
idea.exe), I'm getting the error message
Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory:
yjpagent
Tom
That's why I asked how to create a CPU snapshot.
Tom
Please follow information provided at
http://devnet.jetbrains.net/docs/DOC-192
On 14.12.2010 20:06, Tom wrote:
>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
http://devnet.jetbrains.net/docs/DOC-192
Hello Tom,
quote from aforementioned DOC-192:
Let's not spread FUD, ok? http://www.yourkit.com/overview/ , read 'Free embedding' section. Here's another proof from the horse's mouth: http://forums.yourkit.com/viewtopic.php?f=2&t=3396&p=11273&hilit=license#p11273
People often confuse the actual profiling UI (which does the analysis) and the agent (which collects the data). I won't comment on ASL & BSD compatibility, as I ain't no lawyer :) But in my view there was no reason to drop it from the IDEA CE, was there?
See, there is no single word there about open-source applications - but we certainly need to look deeper in the issue.
Meanwhile, you can just follow instruction :) There is no way to check your claim without CPU snapshot.
Hello Andrew,
Where's the FUD? We don't want to depend on any commercial software in the
open-source Community Edition of IntelliJ IDEA, even if the license for said
commercial software allows free distribution. This makes it much easier,
for example, to include IntelliJ IDEA in Linux distributions.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Dmitry, aren't agents licensed under the BSD? My comment was about the part which claims 'because yourkit isn't open source, etc.', where it doesn't really apply, as IDEA doesn't bundle yourkit commercial product. Anyway, this particular omission of pre-packaged agent hurts usability somewhat, but doesn't affect me directly (using ultimate edition).
Speaking of YourKit, and going quite a bit off-topic... :)
The new YourKit 9.5 can attach to any running Java process, without explicitly starting that process with the agent library configured.
This is done through the new Java 6 Attach API, which allows runtime agent loading and class bytecode retransformation.
This has proven to be quite a killer feature for me.
Never again the "it's slow, why, oh I wish I'd started it with the profiler agent JVM setting" etc.
(note: just a happy user, no relation with the YourKit company)
-tt
Hello Andrew,
If the agents are indeed licensed under the BSD, I have no idea where to
find the source code.
Again, it's not the case that we may not bundle YourKit with IDEA CE. Rather,
we chose not to.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Ok, that clarifies it, I was under the impression that there was some licensing conflict for IDEA CE.
P.S.: the agent-less attach doesn't provide full access to all features (due to JVMTI design)
It looks like I'm doing something wrong:
- build IDEA from sources, unpacked
out/artifacts/ideaIC-100.SNAPSHOT.win.zip to "C:\IDEA X"
- added the line
-agentlib:yjpagent
to "C:\IDEA X\bin\idea.exe.vmoptions" (after the "-ea" line)
- copied yjpagent.dll (1.183.744 byte, MD5:
22B1D6BF4ADBE0DA5166EF7DC6CBBBF2) from yjp-9.5.2.exe to "C:\IDEA X\bin"
- started "C:\IDEA X\bin\idea.bat"; console shows
Loaded. Log file: C:\Dokumente und
Einstellungen\tom\.yjp\log\704.log
- loaded my plain Java project
=> there are NO toolbar buttons to record CPU usage
Is there a plug-in or option which has to be enabled/selected?
Tom
Omission in documentation.
You also need to copy YOURKIT_HOME\lib\yjp-controller-api-redist.jar into IDEA_HOME\lib\ directory.
Done. I'm still not seeing any new toolbar buttons. :(
Tom
Oh, sorry for misleading. These buttons appear to be available in ultimate edition only.
You still can connect to IDEA using YourKit's UI (if it's trial period isn't expired yet), or use it's free command-line tool.
OK, I'm giving up. Will try IDEA 10.0.3 or .4 again.
Tom
OK, I've downloaded IDEA X Ultimate and - what should I say - it is fast.
Again using the ICE built from sources - very sluggish caret movement.
Tom
Can you explain the performance problem in ICE? How to proceed?
Tom
Hi Tom,
I was unable to reproduce that with the latest CE build (100.79).
I don't see other way to go over than analyze performance snapshot.
Denis
Sorry, same problem with this build.
I'd like to help, but I don't know how without trying a day to get Yourkit
working on IDEA.
Tom