Performance

The performance of the Scala plugin is, well, less than desirable.  I realize that most of it is because things in the language are ridiculously  hard to implement efficiently.  Are there plans to spend (even) more time optimizing?  Do you all need more coding help?  If so, how do I get involved?

Thanks,

Dave

13 comments

i guess providing cpu snapshots would be a start. or, if the structure view is open, close it. for some reason, it eats your cpu.

0

I find the Scala plugin is by far the best there is, however, most time it is recompiling things that didn't even change one bit.
I have 10 modules (JARs) and 1 web app (WAR) - when I change one line in one of the classes of the web app it just recompiles all 10 modules plus the web app .

This is where I think more than 80% of the time is wasted!

PS: Just started trying v0.4.207 - same behaviour...

0

The structured view is not open.

It takes much, much longer to validate a file in the scala plugin compared to a java file of equivalent length.  This is by far the biggest issue with the plugin -- the other bugs can be worked around.

In general, using something that has implicit defs slows things down a bunch -- maybe creating an index around implicit defs would be a good place to start, but that's just my impression.  Also it seems using collections in your code slows down compilation a bunch as well -- again, maybe related to implicit defs.

I can, and will, run jprofiler on it and see what is going on.  I'll post my findings.

Dave

0

You can try to fix few bugs (I think some bugs which are most important for you to fix) and to send patches. Then I'll check it and will push it into repository. After few such cycles you can get commit rights. So it's same possibility like for IntelliJ CE.
Performance is main issue, which I try to fix sometimes. But some major fixes in type inference can reduce performance and it can become even worse (after improving then reducing). So we are balancing on some usable state of performance.

Best regards,
Alexander Podkhalyuzin.

0

I have a yourkit dump of a parse of a file that takes 25 seconds to parse fully (the file is ~500 lines long).  Should I just attach the yourkit profile dump (zipped of course)?

0

You can attach this dump. Or you can attach to YouTrack issue. Or just send to my e-mail: Alexander.Podkhalyuzin@jetbrains.com. Thank you.
I'll try to improve performance, 25 sec is too much of course.

Best regards,
Alexander Podkhalyuzin.

0

Here you go.  I'll get your latest fixes and see what that does as well.  Thanks for looking at this.

Dave



Attachment(s):
IntelliJIdea10-2010-11-10.snapshot.zip
0

The latest fixes should improve performance twice.

Best regards,
Alexander Podkhalyuzin.

0

Yes. This changes exists in 0.4.245.

Best regards,
Alexander Podkhalyuzin.

0

It appears that "Extract Method" is broken in 0.4.245 - I got an
exception when I tried.

On 11/12/10 2:16 PM, Alexander Podkhalyuzin wrote:

Yes. This changes exists in 0.4.245.


0

I'll check, thank you.

Best regards,
Alexander Podkhalyuzin.

0

I wouldn't say it's 2x but it is definitely 1.5x.  THANKS!!!

I'll add another yourkit session output soon.

Thanks,

Dave

0

Please sign in to leave a comment.