tips on making project smaller

Currently my project has about 7 modules with pretty much a single line vertical dependency, 5400 java files and 1000 jsp files.

The footprint of this project becomes large enough that running tomcat, intellij just becomes too slow on a 512mb machine. *I am looking for tips that can help me reduce the project footprint *so that I can have a better response and not be forced to move to Emacs to do my edits and compile.

2 comments

Vinay,

It is not what you have asked for but, in general, we do not rely on IDEA
modules because versions of our logical modules evolve differently
(persistence layer usually slower then business logic and business logic
slower then GUI) and therefore they are separate subproject in version
control system and built and deployed via ant scripts hooked directly to
VCS. So if my GUI depends on business layer and persistence layer those will
be imported as libraries into the project.

BTW
Very impressive number of files in your project
Just curious what kind of application you guys are building?
What kind of web framework you are using?



"Vinay Moharil" <vmohar98@yahoo.com> wrote in message
news:29885718.1076345748303.JavaMail.itn@is.intellij.net...

Currently my project has about 7 modules with pretty much a single line

vertical dependency, 5400 java files and 1000 jsp files.
>

The footprint of this project becomes large enough that running tomcat,

intellij just becomes too slow on a 512mb machine. *I am looking for tips
that can help me reduce the project footprint *so that I can have a
better response and not be forced to move to Emacs to do my edits and
compile.


0

I would do exactly what you asked me to. However, I am not sure how to find and fix (cross-project) dependencies when you make code refactorings at lower level. Even though we have the separation at code level, there is no separation in terms of groups of people and so when I refactor something in base components or in persistence layer, I need to understand the extent of "damage".

Unfortunately even the base components are significantly evolving though no where close to the presentation layer frequency.

We use Struts and about 25% of the java files are value objects that get generated (the java files themselves) at build time. This makes intellij's life very difficult since a full build makes intellij think that I modified 1300 files since the project was last opened. But it makes developer's life simpler and less error prone.

0

Please sign in to leave a comment.