Don't serialize Calendar's

Java
Max Rydahl Andersen

...or at least not a lot of them.

Today we just discovered that ONE session in our fat/slim client serialized about 1 MB of data over the wire!
1 meg is alot! .... more investigation showed that the amount of objects looked right, but we could not understand why they were so big!

The reason ?

We had a big bunch of objects with Calendars in them....and try to look at a GregorianCalendar - it got ALOT of fields which are all serialized........making our own serializiation of the Calendar objects and voila...the size was now 300k which still is big, but we will look for more of this.

Really nasty to have a core class serialize so much unnecessary stuff...!