ENG : If you want to see maven in colour, you can just add an litle awk in a script :)
FR : Vous voulez voir maven en couleur, il suffit d'ajouter un petit awk dans un script :)
Aller au contenu | Aller au menu | Aller à la recherche
lundi 20 octobre 2008
Par Olivier le lundi 20 octobre 2008, 19:05
ENG : If you want to see maven in colour, you can just add an litle awk in a script :)
FR : Vous voulez voir maven en couleur, il suffit d'ajouter un petit awk dans un script :)
jeudi 25 septembre 2008
Par Olivier le jeudi 25 septembre 2008, 18:07
mardi 5 août 2008
Par Olivier le mardi 5 août 2008, 10:46
GWT 1.5 RC2 vient tout juste de sortir. C'est téléchargeable ici : http://code.google.com/p/google-web-toolkit/downloads/list
jeudi 31 juillet 2008
Par Olivier le jeudi 31 juillet 2008, 23:08
To speed up GWT compiler, the main idea is to reduce GWT permutations.
To manage the permutations, I build my own version of GWT 1.5 named GWT 1.5 r2030-olivier.
I am using 1.5 M1:
Index: trunk/user/src/com/google/gwt/i18n/I18N.gwt.xml
===================================================================
--- trunk/user/src/com/google/gwt/i18n/I18N.gwt.xml (revision 2030)
+++ trunk/user/src/com/google/gwt/i18n/I18N.gwt.xml (working copy)
@@ -18,7 +18,7 @@
<!-- Browser-sensitive code should use the 'locale' client property. -->
<!-- 'default' is always defined. -->
- <define-property name="locale" values="default" />
+ <define-property name="locale" values="fr_FR" />
<property-provider name="locale">
<![CDATA[
Index: trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml
===================================================================
--- trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml (revision 2030)
+++ trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml (working copy)
@@ -19,7 +19,7 @@
<module>
<!-- Browser-sensitive code should use the 'user.agent' property -->
- <define-property name="user.agent" values="ie6,gecko,gecko1_8,safari,opera"/>
+ <define-property name="user.agent" values="ie6,gecko1_8"/>
<property-provider name="user.agent"><![CDATA[
var ua = navigator.userAgent.toLowerCase();
@@ -27,11 +27,7 @@
return (parseInt(result[1]) * 1000) + parseInt(result[2]);
};
- if (ua.indexOf("opera") != -1) {
- return "opera";
- } else if (ua.indexOf("webkit") != -1) {
- return "safari";
- } else if (ua.indexOf("msie") != -1) {
+ if (ua.indexOf("msie") != -1) {
var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
if (result && result.length == 3) {
if (makeVersion(result) >= 6000) {
@@ -44,7 +40,6 @@
if (makeVersion(result) >= 1008)
return "gecko1_8";
}
- return "gecko";
}
return "unknown";
]]></property-provider>
With my own build, GWT compiler speeds up my project compilation :
This is an amazing gain : 12mn to 1mn
Coming soon.
Par Olivier le jeudi 31 juillet 2008, 23:03
To speed up GWT compiler, the main idea is to reduce GWT permutations.
1. Force a browser
In your module.gwt.xml, force an user agent : gecko1_8 (Firefox 2).
<!-- User Agent -->
<set-property name="user.agent" value="gecko1_8" />
2. Use only one locale
By default, GWT use "default" locale and comment yours locales.
<!-- GWT locale
<extend-property name="locale" values="de_DE" />
<extend-property name="locale" values="en_UK" />
<extend-property name="locale" values="fr_FR" />
<extend-property name="locale" values="hr_HR" />
<extend-property name="locale" values="hu_HU" />
<extend-property name="locale" values="it_IT" />
<extend-property name="locale" values="pt_PT" />
<extend-property name="locale" values="pl_PL" />
<extend-property name="locale" values="nl_NL" />
-->
With this two points, GWT really speeds up but i can improve this.
How to speed up the GWT compiler ? (Part III).
Coming soon.
« billets précédents - page 1 de 13
Derniers commentaires