Overcoming startup delays

How do you put up with the inordinate amount of time that IDEA takes to load a project?

I have a fair size project running on WinXP with 512 MBytes of RAM and it takes over 10 minutes for the project to load. Most of the time is in the "Optimizing performance..." stage.

I have avoided Aurora builds for this very reason. It is unacceptable to say "well, it's a one-time hit during startup". But 10 minutes?!

Sri

16 comments
Comment actions Permalink

"Srivaths Sankaran" <sri.sankaran@sas.com> wrote in message
news:23322144.1053634654784.JavaMail.jrun@is.intellij.net...

How do you put up with the inordinate amount of time that IDEA takes
to load a project?

>

I have a fair size project running on WinXP with 512 MBytes of RAM
and it takes over 10 minutes for the project to load. Most of the
time is in the "Optimizing performance..." stage.

>

I have avoided Aurora builds for this very reason. It is unacceptable
to say "well, it's a one-time hit during startup". But 10 minutes?!


It sounds like a bug.

IDEA loads my project (2700 classes) in much less than a minute. The
"Optimizing Performace" stage took a while the first time I created the
project, but it's fast each time I have opened the project since.


Erik Hanson


0
Comment actions Permalink

It happens only the first time. Doesn't it?

/kesh

Srivaths Sankaran wrote:

How do you put up with the inordinate amount of time that IDEA takes to load a project?

I have a fair size project running on WinXP with 512 MBytes of RAM and it takes over 10 minutes for the project to load. Most of the time is in the "Optimizing performance..." stage.

I have avoided Aurora builds for this very reason. It is unacceptable to say "well, it's a one-time hit during startup". But 10 minutes?!

Sri


0
Comment actions Permalink

I don't really know what it is doing but the progress indicator suggests that it is reading every file in every jar that is included with the jar -- including the JDK.

Yes, I have the -Djars.nocopy=true setting.

Sri

0
Comment actions Permalink

It happens every time I start IDEA or load a project.

I have not modified any setting in the idea.bat file other than setting the jars.nocopy JVM property to true.

Sri

0
Comment actions Permalink

If you are generating JARs into your project tree somewhere, that's likely
to be the cause of the problem. IDEA will notice that these JARs have been
updated and will reparse them. You could try adding the appropriate
directories into to the excluded list, as a possible solution.

Hope that helps,
Vil.

Srivaths Sankaran wrote:

It happens every time I start IDEA or load a project.

I have not modified any setting in the idea.bat file other than setting the jars.nocopy JVM property to true.

Sri


--
Vilya Harvey, Consultant
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Does it take 10 minutes only the first time or each time when you open the
project?

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Srivaths Sankaran" <sri.sankaran@sas.com> wrote in message
news:23322144.1053634654784.JavaMail.jrun@is.intellij.net...

How do you put up with the inordinate amount of time that IDEA takes to

load a project?
>

I have a fair size project running on WinXP with 512 MBytes of RAM and it

takes over 10 minutes for the project to load. Most of the time is in the
"Optimizing performance..." stage.
>

I have avoided Aurora builds for this very reason. It is unacceptable to

say "well, it's a one-time hit during startup". But 10 minutes?!
>

Sri



0
Comment actions Permalink

What is the implication of "Exclude Folder"? I hadn't noticed the feature.

Sri

0
Comment actions Permalink

Here's what I found (using build 816):

o If I add a new library to my project using [Project
Properties > Libraries Tab > Add Classes] IDEA
presents the "Analyzing Paths" dialog where it
says it's "Optimizing Performance". The progress
indicator in this dialog suggests that IDEA is scanning
every file in the jar. This takes some (non-trivial)
time, depending on the size of the jar.

o When a new project is created with several libraries
added, delay described in the above is repeated for
every library in the project
An exception to this seems to be if the jars in this
new project were also in another IDEA project, in which
case, the optimization step is fast.

o If I close the project using
and then re-open it using things go
quickly

o If I close IDEA (with the project still open) and then
re-start IDEA -- so that the last project is opened
automatically -- things go quickly

So, it seems like creating a new project and adding jars to an existing project are the culprits. It seems like an inordinate amount of time spent -- even if it is only once per jar. Can this not be done in a background thread? Is there a way to switch this off altogether?

0
Comment actions Permalink

This could probably be answered more accurately by someone from JetBrains
but I believe it tells IDEA to ignore that folder when trying to resolve
classes. This might mean that it doesn't go through the process of
re-indexing those JARs each time it changes. I'm not really sure though. Can
anyone from JetBrains confirm/deny this?

Vil.

Srivaths Sankaran wrote:

What is the implication of "Exclude Folder"? I hadn't noticed the feature.

Sri


--
Vilya Harvey, Consultant
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

IDEA doesn't notice excluded folders. I.e. it doesn't reindex, refresh them,
doesn't show in project view, etc.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Mike Aizatsky wrote:

IDEA doesn't notice excluded folders. I.e. it doesn't reindex, refresh them,
doesn't show in project view, etc.

Does it mean that output folder must be listed in excluded folders by
default?

/kesh

0
Comment actions Permalink

Can this not be done in a background thread? Is there a way to switch

this off altogether?

No, that's not possible. At least if you gonna continue using IDEA's code
aware features, not just a plain text editor.
On other hand we're doing our best in order to speed up the process.


0
Comment actions Permalink

Maxim Shafirov wrote:
>>Can this not be done in a background thread? Is there a way to switch

this off altogether?

No, that's not possible. At least if you gonna continue using IDEA's code
aware features, not just a plain text editor.
On other hand we're doing our best in order to speed up the process.


Wouldn't it be faster to print (draw) just current processed package than
current file? Of course it's not that nice, but surely should be faster.

--
Dmitry Skavish
-


Boston, MA, USA
tel. +1 781 910-3810
http://www.jzox.com
http://www.flashgap.com

0
Comment actions Permalink

We've experimented a bit with that and noticed that progress window drawing
does not take much of CPU comparing to the process it measures. On other
hand the progress that quickly changes its text makes the feeling of faster
process.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Dmitry Skavish" <skavish@usa.net> wrote in message
news:baljrv$pd7$1@is.intellij.net...

Maxim Shafirov wrote:
>>Can this not be done in a background thread? Is there a way to switch

this off altogether?

>

No, that's not possible. At least if you gonna continue using IDEA's

code

aware features, not just a plain text editor.
On other hand we're doing our best in order to speed up the process.

>

Wouldn't it be faster to print (draw) just current processed package than
current file? Of course it's not that nice, but surely should be faster.

>

--
Dmitry Skavish
-----------------------
Boston, MA, USA
tel. +1 781 910-3810
http://www.jzox.com
http://www.flashgap.com

>


0
Comment actions Permalink

Why do you discount the background thread approach? That is a perfectly reasonable solution, you just need to figure out the synchronization. Or does the implementation absolutely require all files to be processed before performing anything at all?

0
Comment actions Permalink

Maxim Shafirov wrote:
>>Can this not be done in a background thread? Is there a way to switch


this off altogether?

No, that's not possible. At least if you gonna continue using IDEA's code
aware features, not just a plain text editor.
On other hand we're doing our best in order to speed up the process.


That seems reasonable. A plain text editor is better than waiting. It
would just need some sort of indication when the parsing is complete.

0

Please sign in to leave a comment.