Play! compile is very slow.

440 views
Skip to first unread message

曹江华

unread,
Sep 9, 2010, 11:01:57 AM9/9/10
to play-framework
why the Play! compile command is very slow!!

--
http://www.caojianghua.com

Julien Tournay

unread,
Sep 9, 2010, 11:39:20 AM9/9/10
to play-fr...@googlegroups.com
Play! uses the eclipse compiler which is faster than the standard
compiler, so I wouldn't call it "slow".

Jto

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

--
Real Programmers don't need comments-- the code is obvious.

Federico Tolomei

unread,
Sep 9, 2010, 11:44:53 AM9/9/10
to play-fr...@googlegroups.com
Compiling 1.0 with plain old ant command takes 8 seconds.

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>

--
http://lupulu.li
skype: effe.to

曹江华

unread,
Sep 9, 2010, 11:50:42 AM9/9/10
to play-fr...@googlegroups.com
eclipse compiler? how i do it?

On Thu, Sep 9, 2010 at 11:39 PM, Julien Tournay <boud...@gmail.com> wrote:
Play! uses the eclipse compiler which is faster than the standard
compiler, so I wouldn't call it "slow".

Jto

On Thursday, September 9, 2010, 曹江华 <tujiao.com@gmail.com> wrote:
> why the Play! compile command is very slow!!
> --
> http://www.caojianghua.com
>
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

--
Real Programmers don't need comments-- the code is obvious.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.




--
http://www.caojianghua.com

Julien Tournay

unread,
Sep 9, 2010, 11:57:08 AM9/9/10
to play-fr...@googlegroups.com
Oops I think I misunderstood you. You talk about the framework compilation.
Well it takes a few seconds to me.

Jto.


On Thursday, September 9, 2010, 曹江华 <tujia...@gmail.com> wrote:
> eclipse compiler? how i do it?
>
> On Thu, Sep 9, 2010 at 11:39 PM, Julien Tournay <boud...@gmail.com> wrote:
> Play! uses the eclipse compiler which is faster than the standard
> compiler, so I wouldn't call it "slow".
>
> Jto
>

Schloida Schmitt

unread,
Sep 9, 2010, 12:05:00 PM9/9/10
to play-framework
We cannot help you if you don't provide us with detailed information
about your problem.

This may help you make your question: http://www.catb.org/esr/faqs/smart-questions.html

曹江华

unread,
Sep 9, 2010, 12:12:22 PM9/9/10
to play-fr...@googlegroups.com
my project have more and more views(html/wml,,,templates), when i start play! found was very slowly, so i'd have to run 'play precompile' commands, but it have take a long time for compile complete.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.




--
http://www.caojianghua.com

Julien Tournay

unread,
Sep 9, 2010, 12:18:48 PM9/9/10
to play-fr...@googlegroups.com
Ok so no in fact I haven't misunderstood you.
Play! uses the eclipse compiler, which is fast (smth like 2 or 3 times faster than sun's compiler).
What do you call "a long time" ? 1minute ? 1 hour ?

Jto.

Schloida Schmitt

unread,
Sep 9, 2010, 12:27:35 PM9/9/10
to play-framework
Ok, now your question is a bit better than the first one, but still
you need to give us more details, as Julien asked for. So you have
lots of templates and it takes too much time to start the app. How
many templates? How much time is that? How do you start the app? Is
there any bizarre, unusual templates in your app? The more things you
tell us about your app and your procedures, the easier and quicker it
is for you to get an answer. We can't keep making guesses all the
time.

On 9 set, 13:12, 曹江华 <tujiao....@gmail.com> wrote:
> my project have more and more views(html/wml,,,templates), when i start
> play! found was very slowly, so i'd have to run 'play precompile' commands,
> but it have take a long time for compile complete.
>
> On Fri, Sep 10, 2010 at 12:05 AM, Schloida Schmitt <schlo...@gmail.com>wrote:
>
>
>
> > We cannot help you if you don't provide us with detailed information
> > about your problem.
>
> > This may help you make your question:
> >http://www.catb.org/esr/faqs/smart-questions.html
>
> > On 9 set, 12:01, 曹江华 <tujiao....@gmail.com> wrote:
> > > why the Play! compile command is very slow!!
>
> > > --http://www.caojianghua.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> > .

曹江华

unread,
Sep 9, 2010, 12:55:25 PM9/9/10
to play-fr...@googlegroups.com
1)template have 744 files and 3.13MB
2)java files in app directory have 30 files and 119KB

my computer info bellow:
cpu: 8  Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
mem:8G
OS:Redhat as 5.4, Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Play version:1.0.1
JDK:jrrt-3.0.0-1.6.0(oracle jrockit 3.0)
SCM:subversion

when run:

play precompile

have take 3-4 minutes.


2010/9/10 Schloida Schmitt <schl...@gmail.com>
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Daniel Guryca

unread,
Sep 9, 2010, 2:12:51 PM9/9/10
to play-fr...@googlegroups.com
Well you have pretty powerful machine - 8 cores.
Mine is AMD X2-2000

For me it takes something around 2 minutes but I have less templates but much much more files in app + modules.

Daniel

Schloida Schmitt

unread,
Sep 9, 2010, 2:29:53 PM9/9/10
to play-framework
Wow, I never worked with such a big number of templates before. Is it
slow when you do 'play run'? I noticed you are running it on Oracle
JRockit. I don't know JRockit, never used it, but you might try
running it on Sun's JVM or the OpenJDK to see if there is any
significant change in performance. Also try to upgrade to the latest
version of Play!, that also may help a little. These are just some
shots in the dark, I'm not sure it will change something.

I would bother only if 'play run' took that long. I never needed to
precompile the project during development time.

On 9 set, 13:55, 曹江华 <tujiao....@gmail.com> wrote:
> 1)template have 744 files and 3.13MB
> 2)java files in app directory have 30 files and 119KB
>
> my computer info bellow:
> cpu: 8 Intel(R) Xeon(R) CPU E5405 @ 2.00GHz
> mem:8G
> OS:Redhat as 5.4, Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Wed
> Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
> Play version:1.0.1
> JDK:jrrt-3.0.0-1.6.0(oracle jrockit 3.0)
> SCM:subversion
>
> when run:
>
> play precompile
>
> have take 3-4 minutes.
>
> 2010/9/10 Schloida Schmitt <schlo...@gmail.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>

Bing Ran

unread,
Sep 9, 2010, 2:29:36 PM9/9/10
to play-fr...@googlegroups.com
Out of curiosity I made a comparison run with Japid.
 
computer:  3 year Dell m1330 laptop with T7300, duo core.
jdk: sun jdk 1.6.0_20
files: 820 template files, of total 8M size
play version: 1.1 beta in the master
 
"play clean && play precompile" took about 24 seconds.
 
I believe the data reflects the performance difference of Groovy compiler vs. Java compiler

Daniel Guryca

unread,
Sep 9, 2010, 4:56:29 PM9/9/10
to play-fr...@googlegroups.com
Yup it could be truth. Groovy compiler is slow as hell at least it was true in grails.

Daniel

2010/9/9 Bing Ran <bing...@gmail.com>

GrailsDeveloper

unread,
Sep 17, 2010, 2:05:20 AM9/17/10
to play-framework
Is there any result of the analyze? Has someone find out if the
templates are the problems?
I think this would be interesting, because it's not so funny if you
start fast and when the project grow you become slow. At least you
will have round trips which are slower than with tomcat and JSF.

Niels

On 9 Sep., 22:56, Daniel Guryca <dun...@gmail.com> wrote:
> Yup it could be truth. Groovy compiler is slow as hell at least it was true
> in grails.
>
> Daniel
>
> 2010/9/9 Bing Ran <bing....@gmail.com>
>
> > Out of curiosity I made a comparison run with Japid.
>
> > computer: 3 year Dell m1330 laptop with T7300, duo core.
> > jdk: sun jdk 1.6.0_20
> > files: 820 template files, of total 8M size
> > play version: 1.1 beta in the master
>
> > "play clean && play precompile" took about 24 seconds.
>
> > I believe the data reflects the performance difference of Groovy compiler
> > vs. Java compiler
>
> > *From:* 曹江华 <tujiao....@gmail.com>
> > *Sent:* Friday, September 10, 2010 12:55 AM
> > *To:* play-fr...@googlegroups.com
> > *Subject:* Re: [play-framework] Re: Play! compile is very slow.
>
> > 1)template have 744 files and 3.13MB
> > 2)java files in app directory have 30 files and 119KB
>
> > my computer info bellow:
> > cpu: 8 Intel(R) Xeon(R) CPU E5405 @ 2.00GHz
> > mem:8G
> > OS:Redhat as 5.4, Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Wed
> > Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
> > Play version:1.0.1
> > JDK:jrrt-3.0.0-1.6.0(oracle jrockit 3.0)
> > SCM:subversion
>
> > when run:
>
> > play precompile
>
> > have take 3-4 minutes.
>
> > 2010/9/10 Schloida Schmitt <schlo...@gmail.com>
> >> <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/play-framework?hl=en.
>
> >> > --http://www.caojianghua.com
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "play-framework" group.
> >> To post to this group, send email to play-fr...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/play-framework?hl=en.
>
> > --
> >http://www.caojianghua.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to

Guillaume Bort

unread,
Sep 17, 2010, 3:27:24 AM9/17/10
to play-fr...@googlegroups.com
Well if you have a project with 800 templates, there is a problem somewhere...

2010/9/17 GrailsDeveloper <openso...@googlemail.com>:

> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.


> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com

GrailsDeveloper

unread,
Sep 17, 2010, 8:54:15 AM9/17/10
to play-framework
800 template can a result of a poor design or a big project. I have
currently a project with about 320 masks, so it's far away from that.
Nevertheless it's not the biggest project in our company. Furthermore
Bing Ran seems to have a project of similar size.
I don't want to blame play as slow, but I think it would be
interesting to know if there is a problem if you have to manage such a
big project. As far as I understand play has the claim, that you can
build even big projects with it. In this special case there was an
special jre involved, which could have influence too. So I hoped that
we can get some benchmarks with this big project. If the groovy
template is the problem this doesn't mean we must change it, but it
could be an advice to think about another rendering solution for the
special project. As Japid shows this is possible.
Never the less, if we don't have more information, it's not a big
thing. I hoped that someone has experiences with about >200 masks and
could see how much time the template compile need.

Niels

On 17 Sep., 09:27, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> Well if you have a project with 800 templates, there is a problem somewhere...
>
> 2010/9/17 GrailsDeveloper <opensourc...@googlemail.com>:
> Guillaume Bort,http://guillaume.bort.fr
>
> For anything work-related, use g...@zenexity.fr; for everything else,
> write guillaume.b...@gmail.com

Guillaume Bort

unread,
Sep 17, 2010, 9:19:38 AM9/17/10
to play-fr...@googlegroups.com
Yes 800 templates will need more time to compile than 50. So it will
make you less agile... But there is no problem.

Just split your "big project" into several smaller applications
(modules in Play).

It is the same thing if you tell me that for your "big project" you
have Java files with 80000 lines of code. I'll suggest you to split
them... It's not matter of project size. It's matter of organization.

> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,

write guillau...@gmail.com

Julien Tournay

unread,
Sep 17, 2010, 9:21:51 AM9/17/10
to play-fr...@googlegroups.com
Humf,

Can you show us the code of some of your views, because I fail to see how you can have 800 files with only 30 controllers.

And

Even if Play! needs 10 minutes to build everything, why would you care? Since it only happen when you put your app in production.
It's not a problem in dev (well, it can be slow if you do a clean and then re-launch play, but after that...), so I just don't understand.

jto.

On Fri, Sep 17, 2010 at 2:54 PM, GrailsDeveloper <openso...@googlemail.com> wrote:
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

GrailsDeveloper

unread,
Sep 17, 2010, 9:42:06 AM9/17/10
to play-framework
Thank for the answer. The mismatch between controller-code to
templates is indeed a hint of wrong design, specially very large
controllers.

I think I have misunderstand something:
I thought that the first problem was in dev-mode that it will be there
very slow. If I understand you last post right, only changed classes/
templates will be compiled in dev mode. So than I absolute with you 10
minutes are no problem.

Can I deliver a module precompiled, so that the templates doesn't need
to be compiled again? So that it can be used like jars, which would be
the option if you have to much Java files in project?

Thanks for the answers it clarifies the situation for me a lot.

Niels
> > > >> >> <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
>
> > > >> >> > > .
> > > >> >> > > For more options, visit this group at
> > > >> >> > >http://groups.google.com/group/play-framework?hl=en.
>
> > > >> >> > --http://www.caojianghua.com
>
> > > >> >> --
> > > >> >>  You received this message because you are subscribed to the Google
> > > >> >> Groups "play-framework" group.
> > > >> >> To post to this group, send email to
> > play-fr...@googlegroups.com.
> > > >> >> To unsubscribe from this group, send email to
> > > >> >> play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> > > >> >> .
> > > >> >> For more options, visit this group at
> > > >> >>http://groups.google.com/group/play-framework?hl=en.
>
> > > >> > --
> > > >> >http://www.caojianghua.com
>
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google
> > Groups
> > > >> > "play-framework" group.
> > > >> > To post to this group, send email to
> > play-fr...@googlegroups.com.
> > > >> > To unsubscribe from this group, send email to
> > > >> > play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> > > >> > .
> > > >> > For more options, visit this group at
> > > >> >http://groups.google.com/group/play-framework?hl=en.
>
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google
> > Groups
> > > >> > "play-framework" group.
> > > >> > To post to this group, send email to
> > play-fr...@googlegroups.com.
> > > >> > To unsubscribe from this group, send email to
> > > >> > play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> > > >> > .
> > > >> > For more options, visit this group at
> > > >> >http://groups.google.com/group/play-framework?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "play-framework" group.
> > > > To post to this group, send email to play-fr...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/play-framework?hl=en.
>
> > > --
> > > Guillaume Bort,http://guillaume.bort.fr
>
> > > For anything work-related, use g...@zenexity.fr; for everything else,
> > > write guillaume.b...@gmail.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to

Julien Tournay

unread,
Sep 17, 2010, 9:55:23 AM9/17/10
to play-fr...@googlegroups.com
Well, I not sure of how play handles templates compilation, but even if it's re-compiles everything at startup in dev mode, you almost never have to relaunch you're server. So it's not perfect, but it's not THAT bad.

jto

2010/9/17 GrailsDeveloper <openso...@googlemail.com>
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Bing Ran

unread,
Sep 17, 2010, 10:12:02 AM9/17/10
to play-fr...@googlegroups.com
 
 
The 800 something is not the real project size. The real size is about 100 views. I duplicated the views to match the total size of the project from the original author, just for benchmarking.
 
100-200 views are not uncommon for projects. I even heard of some "enterprise" web projects of over 1000 pages. But yes personally I'd split a huge one into multiple smaller ones for easier management. But I'm not afraid of going bigger if necessary. 
> >> > 聽Out of curiosity I made a comparison run with Japid.
>
> >> > computer: 聽3 year Dell m1330 laptop with T7300, duo core.

> >> > jdk: sun jdk 1.6.0_20
> >> > files: 820 template files, of total 8M size
> >> > play version: 1.1 beta in the master
>
> >> > "play clean && play precompile" took about 24 seconds.
>
> >> > I believe the data reflects the performance difference of Groovy compiler
> >> > vs. Java compiler
>
> >> > 聽*From:* 鏇规睙鍗?<tujiao....@gmail.com>

> >> > *Sent:* Friday, September 10, 2010 12:55 AM
> >> > *To:* play-fr...@googlegroups.com
> >> > *Subject:* Re: [play-framework] Re: Play! compile is very slow.
>
> >> > 1锛塼emplate have 744 files and 3.13MB
> >> > 2锛塲ava files in app directory have 30 files and 119KB
>
> >> > my computer info bellow:
> >> > cpu: 8 聽Intel(R) Xeon(R) CPU 聽 聽 聽 聽 聽 E5405 聽@ 2.00GHz
> >> > mem锛?G
> >> > OS锛歊edhat as 5.4, Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Wed

> >> > Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
> >> > Play version锛?.0.1
> >> > JDK锛歫rrt-3.0.0-1.6.0锛坥racle jrockit 3.0锛?br> > >> > SCM锛歴ubversion

>
> >> > when run:
>
> >> > play precompile
>
> >> > have take 3-4 minutes.
>
> >> > 2010/9/10 Schloida Schmitt <schlo...@gmail.com>
>
> >> >> Ok, now your question is a bit better than the first one, but still
> >> >> you need to give us more details, as Julien asked for. So you have
> >> >> lots of templates and it takes too much time to start the app. How
> >> >> many templates? How much time is that? How do you start the app? Is
> >> >> there any bizarre, unusual templates in your app? The more things you
> >> >> tell us about your app and your procedures, the easier and quicker it
> >> >> is for you to get an answer. We can't keep making guesses all the
> >> >> time.
>
> >> >> On 9 set, 13:12, 鏇规睙鍗?<tujiao....@gmail.com> wrote:
> >> >> > my project have more and more views(html/wml,,,templates), when i start
> >> >> > play! found was very slowly, so i'd have to run 'play precompile'
> >> >> commands,
> >> >> > but it have take a long time for compile complete.
>
> >> >> > On Fri, Sep 10, 2010 at 12:05 AM, Schloida Schmitt <schlo...@gmail.com
> >> >> >wrote:
>
> >> >> > > We cannot help you if you don't provide us with detailed information
> >> >> > > about your problem.
>
> >> >> > > This may help you make your question:
> >> >> > >http://www.catb.org/esr/faqs/smart-questions.html
>
> >> >> > > On 9 set, 12:01, 鏇规睙鍗?<tujiao....@gmail.com> wrote:
> >> >> > > > why the Play! compile command is very slow!!
>
> >> >> > > > --http://www.caojianghua.com
>
> >> >> > > --
> >> >> > > You received this message because you are subscribed to the Google
> >> >> Groups
> >> >> > > "play-framework" group.
> >> >> > > To post to this group, send email to play-fr...@googlegroups.com.
> >> >> > > To unsubscribe from this group, send email to
> >> >> > > play-framewor...@googlegroups.com<play-framework%2Bunsu...@googlegroups.com>
> >> >> <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> >> >> > > .
> >> >> > > For more options, visit this group at
> >> >> > >http://groups.google.com/group/play-framework?hl=en.
>
> >> >> > --http://www.caojianghua.com
>
> >> >> --
> >> >> 聽You received this message because you are subscribed to the Google

Julien Tournay

unread,
Sep 17, 2010, 10:27:29 AM9/17/10
to play-fr...@googlegroups.com
You're application can have 10000 pages, that doesn't mean you need 10000 views.

jto.

2010/9/17 Bing Ran <bing...@gmail.com>

Bing Ran

unread,
Sep 17, 2010, 11:00:51 AM9/17/10
to play-fr...@googlegroups.com
I meant views as you can guess.

Julien Tournay

unread,
Sep 17, 2010, 11:08:15 AM9/17/10
to play-fr...@googlegroups.com
1000 views == bad practise

Seriously, at this point the application is totally unmanageable for devs / admins, and is probably a nightmare for users too.
Even HUUUUGE websites like ebay, facebook, google, etc. don't have 1000 views in 1 app.

Julien.

2010/9/17 Bing Ran <bing...@gmail.com>

Bing Ran

unread,
Sep 17, 2010, 11:28:56 AM9/17/10
to play-fr...@googlegroups.com
Agreed

GrailsDeveloper

unread,
Sep 17, 2010, 1:29:47 PM9/17/10
to play-framework
Ok I try a summary:
1. System which more than 200 templates are very raw or better are not
exists.
2. Try to use modules to keep each system small.
3. For classes only changes will compiled, so there we won't get
trouble with increasing systems. Only if you have a long dependency
graph (1 class is referred from 100 others and you change this
referred class). But using the eclipse compile you are still on the
fastest possible solution.
4. I looked how templates handles. In dev there is no caching of
templates, they will always compiled. You can get the compile time on
log-level trace. But there will always only 1 template compiled. So
the system may have 10000 templates this wouldn't have influence of
the performance (you will get serious problems for other reasons).

So in one sentence: Play will handle even systems which many templates
and java-files pretty well and the performance will be as good as for
small systems.
Thanks for the input in this discussion. I learned a lot and I was
impressed how good I can understand the code.
NIels

On 17 Sep., 17:28, "Bing Ran" <bing....@gmail.com> wrote:
> Agreed
>
> From: Julien Tournay
> Sent: Friday, September 17, 2010 11:08 PM
> To: play-fr...@googlegroups.com
> Subject: Re: [play-framework] Re: Play! compile is very slow.
>
> 1000 views == bad practise
>
> Seriously, at this point the application is totally unmanageable for devs / admins, and is probably a nightmare for users too.
> Even HUUUUGE websites like ebay, facebook, google, etc. don't have 1000 views in 1 app.
>
> Julien.
>
> 2010/9/17 Bing Ran <bing....@gmail.com>
>
> I meant views as you can guess.
>
> From: Julien Tournay
> Sent: Friday, September 17, 2010 10:27 PM
> To: play-fr...@googlegroups.com
> Subject: Re: [play-framework] Re: Play! compile is very slow.
>
> You're application can have 10000 pages, that doesn't mean you need 10000 views.
>
> jto.
>
> 2010/9/17 Bing Ran <bing....@gmail.com>
>
> The 800 something is not the real project size. The real size is about 100 views. I duplicated the views to match the total size of the project from the original author, just for benchmarking.
>
> 100-200 views are not uncommon for projects. I even heard of some "enterprise" web projects of over 1000 pages. But yes personally I'd split a huge one into multiple smaller ones for easier management. But I'm not afraid of going bigger if necessary.
>
> From: Julien Tournay
> Sent: Friday, September 17, 2010 9:21 PM
> To: play-fr...@googlegroups.com
> Subject: Re: [play-framework] Re: Play! compile is very slow.
>
> Humf,
>
> Can you show us the code of some of your views, because I fail to see how you can have 800 files with only 30 controllers.
>
> And
>
> Even if Play! needs 10 minutes to build everything, why would you care? Since it only happen when you put your app in production.
> It's not a problem in dev (well, it can be slow if you do a clean and then re-launch play, but after that...), so I just don't understand.
>
> jto.
>
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> Real Programmers don't need comments-- the code is obvious.
>
> --
>
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> Real Programmers don't need comments-- the code is obvious.
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --

GrailsDeveloper

unread,
Sep 17, 2010, 1:51:38 PM9/17/10
to play-framework
Sorry I analyze play 1.0 in 1.1 the template files are cached even in
DEV-Mode. There is a time stamp compare now.
Niels

On 17 Sep., 19:29, GrailsDeveloper <opensourc...@googlemail.com>
wrote:
> ...
>
> Erfahren Sie mehr >>
Reply all
Reply to author
Forward
0 new messages