Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

MapTypeControl causes compiled file size to explode #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I'm using version milestone r290. With the following code, if I uncomment 
map.addControl(new MapTypeControl());

the compiled file size jumped to 21Mb whereas the normal file size without
that line is only 700kb

public MapPanel() {
        VerticalPanel mainPanel = new VerticalPanel();
        initWidget(mainPanel);  
        map = new MapWidget();
        map.setSize("600px", "600px");
        map.addControl(new SmallMapControl());
        //map.addControl(new MapTypeControl()); //<-- problem here
        map.setScrollWheelZoomEnabled(true);
        mainPanel.add(map);
    }

Original issue reported on code.google.com by mquan...@gmail.com on 13 Jun 2008 at 12:36

GoogleCodeExporter commented 9 years ago
Yikes!  Which version of GWT compiler are you using?  Do you get the same 
result with
the 1.5RC1 release?  If you are still getting these results, could you attach a 
copy
of one of your permutations?  (the files named <long hex string>.cache.html

For the record,the HelloMaps sample invokes the MapTypeControl() in several 
places. 
This is building with obfuscated mode, each permutation is about 250K, and the 
total
size of the compiled HelloMaps app is 1.4M (including images)

$ du -sh com.google.gwt.maps.sample.maps.HelloMaps/
1.4M    com.google.gwt.maps.sample.maps.HelloMaps/

$ ls -l
total 2896
-rw-r--r--  1 zundel  5000  265506 Jun 12 21:28
080086D584605F905AFF91DAAB36CF0E.cache.html
-rw-r--r--  1 zundel  5000  263597 Jun 12 21:28
37509C365F2902D7C56396FEBA621BF8.cache.html
-rw-r--r--  1 zundel  5000  265348 Jun 12 21:28
3C4CB285F129014222551B9738930226.cache.html
-rw-r--r--  1 zundel  5000    6414 Jun 12 21:28
44992076E54DF4884B5F1284881D92A2.cache.png
-rw-r--r--  1 zundel  5000      92 Jun 12 21:28
548CDF11D6FE9011F3447CA200D7FB7F.cache.png
-rw-r--r--  1 zundel  5000      90 Jun 12 21:28
9DA92932034707C17CFF15F95086D53F.cache.png
-rw-r--r--  1 zundel  5000     273 Jun 12 21:28
A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.png
-rw-r--r--  1 zundel  5000  264927 Jun 12 21:28
B46AEE1B4FD2BFAF6889FF15C2998DD6.cache.html
-rw-r--r--  1 zundel  5000  262963 Jun 12 21:28
D6D2766CEF2C6F4E8D1F9B7E1DC0387B.cache.html
-rw-r--r--  1 zundel  5000   10848 Jun 12 21:28 GWT-default.css
-rw-r--r--  1 zundel  5000    1201 Jun 12 21:28 HelloMaps.css
-rw-r--r--  1 zundel  5000    1385 Jun 12 21:28 HelloMaps.html
-rw-r--r--  1 zundel  5000     229 Jun 12 21:28 TextualZoomControl.css
-rw-r--r--  1 zundel  5000     153 Jun 12 21:28 bluebox-bl.png
-rw-r--r--  1 zundel  5000     148 Jun 12 21:28 bluebox-br.png
-rw-r--r--  1 zundel  5000     153 Jun 12 21:28 bluebox-tl.png
-rw-r--r--  1 zundel  5000     151 Jun 12 21:28 bluebox-tr.png
-rw-r--r--  1 zundel  5000   30193 Jun 12 21:28 boot.jpg
-rw-r--r--  1 zundel  5000      43 Jun 12 21:28 clear.cache.gif
-rw-r--r--  1 zundel  5000    5827 Jun 12 21:28
com.google.gwt.maps.sample.maps.HelloMaps.nocache.js
-rw-r--r--  1 zundel  5000     436 Jun 12 21:28 history.html
-rw-r--r--  1 zundel  5000     641 Jun 12 21:28 hosted.html
drwxr-xr-x  7 zundel  5000     238 Jun 12 21:28 images
-rw-r--r--  1 zundel  5000    3299 Jun 12 21:28 logo-small.png
-rw-r--r--  1 zundel  5000     585 Jun 12 21:28 rain-shadow.png
-rw-r--r--  1 zundel  5000    1387 Jun 12 21:28 rain.png
-rw-r--r--  1 zundel  5000     567 Jun 12 21:28 snow-shadow.png
-rw-r--r--  1 zundel  5000    1584 Jun 12 21:28 snow.png
-rw-r--r--  1 zundel  5000     608 Jun 12 21:28 storm-shadow.png
-rw-r--r--  1 zundel  5000    1553 Jun 12 21:28 storm.png
-rw-r--r--  1 zundel  5000     651 Jun 12 21:28 sun-shadow.png
-rw-r--r--  1 zundel  5000    2189 Jun 12 21:28 sun.png

Original comment by galgwt.reviews@gmail.com on 13 Jun 2008 at 1:35

GoogleCodeExporter commented 9 years ago
I'm using 1.5RC1, but as of now I'm unable to reproduce the same result. The 
file
size is back to normal with that line, not sure what happen there. There weren't
significant changes to make that much of a difference. I'll keep an eye on this 
and
see if it happen again. In the mean time, please file this under false alarm.

Original comment by mquan...@gmail.com on 13 Jun 2008 at 2:32

GoogleCodeExporter commented 9 years ago
Possibly some old compiler permutations were lying around.  Feel free to update 
this
ticket or file a new one if you get something more definitive.

Original comment by galgwt.reviews@gmail.com on 13 Jun 2008 at 10:13