hpehl / piriti

JSON and XML Mapper for GWT
40 stars 16 forks source link

Anyway to squeeze generated javascripts ? #13

Open cometta opened 11 years ago

cometta commented 11 years ago

i use lot of modals and end up 66k of piriti json.read, json.write compiled java scripts. Anyway to reduce output size?

cometta commented 11 years ago

reason need to reduce is because this slow down initial download of gwt if too many modals pojo.

hpehl commented 11 years ago

Yes I know this is a problem. Unfortunately I had no time to address this. I'm sure there's room for optimization, but currently I do not have time to take care of it.

Anybody willing to jump in?

cometta commented 11 years ago

i still figuring how to optimize this. I think the rest of the community will be interested in this.

cometta commented 11 years ago

any suggestion on technique can be used ?

lathil commented 11 years ago

I wonder if Piriti is the right place for the optimisation. Doesn't it just generate *.Java files that GWT then compile into Javascript. Wouldn't it be better to the optimisation on GWT side ?

hpehl commented 11 years ago

Good point. But I think there's also a chance to reduce the generated java code. I'm not sure how much we could reduce the size, a first guess is something around 10%. But that's just a rough estimation. It's been a while since I worked on the codebase.