I started nice, but now that I have many entities with List & Edit
views, activities and places, my project is growing a lot and I having
perfomance issues.
I know about code splitting, but I care about is, is performant to
have for example a EditPlace, ListPlace, EditActivity & ListActivity
for every model that I need to work in my app? For example, if I only
have Foo model I will have:
FooEditPlace
FooEditActivity
FooEditView
FooEditViewImpl
FooEditView.ui.xml
FooListPlace
FooListActivity
FooListView
FooListViewImpl
FooListView.ui.xml
Ten files for only editing / listing one model :) And I have to edit /
list about 17 models in my app right now...
I don't know if I doing the things in the "right" way. Is it normally
to have many files in a big GWT project using the GWT Activities &
Places fw?
OTOS I was looking to another frameworks like gwtp, mvp4g, guit, every
one seems to be nice and have cool features, but I believe (just
believe, I didn't try anyone of this fw yet) that they are reinvent
the wheel. Or I am wrong and I can take avantage of using one of this
fw in my app?
What are you experiences? Am I doing wrong in the "Activities &
Places" way? Am I using it right and I just have to use code spliting
to have better performance? Or should I use gwtp, mvp4g or guit?
Thanks in advance ;)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
The main issue that I am having is in Eclipse, something when I make a
change (little change) and I reload my app in Firefox I get this on
the console:
java.lang.OutOfMemoryError: PermGen space
[ERROR] Out of memory; to increase the amount of memory, use the -
Xmx flag at startup (java -Xmx128M ...)
So that's why I believed that cutting the number of classes could
solve my problem.
BTW i am on MacBookPro i5 with 4MB, using Eclipse Helios 64 bit.
> Sorry about the delay :)
>
> The main issue that I am having is in Eclipse, something when I make a
> change (little change) and I reload my app in Firefox I get this on
> the console:
>
> java.lang.OutOfMemoryError: PermGen space
> [ERROR] Out of memory; to increase the amount of memory, use the -
> Xmx flag at startup (java -Xmx128M ...)
>
> So that's why I believed that cutting the number of classes could
> solve my problem.
Completely unnecessary.
Just right click your project in eclipse and select -->run as --> run
configurations.
Under Web Applications find the html page for your project, select it
and do what the message above says to do in the vmargs tab.
If Eclipse itself need more memory you have to find the icon in finder
and right click it, select Show Package contents --> MacOS --> and
modify with something like the following under -vmargs:
-vmargs
-XX:MaxPermSize=1G
-Xms40m
-Xmx2G