-
Brian - I've got a question for you towards the bottom of this post - please be sure to read!
No, they shouldn't be the same size (although I am surprised that the difference is as much as you indicate). The byte arrays that actually consume the pages in the file don't get constructed until you commit. So if you have an object that changes 1000 times, it only gets serialized once, and...
2009-12-28 16:04:37 UTC in jdbm
-
trumpetinc committed revision 4222 to the iText, a JAVA-PDF library SVN repository, changing 1 files.
2009-12-22 14:15:57 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4221 to the iText, a JAVA-PDF library SVN repository, changing 18 files.
2009-12-22 05:20:45 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4220 to the iText, a JAVA-PDF library SVN repository, changing 3 files.
2009-12-21 15:57:13 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4219 to the iText, a JAVA-PDF library SVN repository, changing 5 files.
2009-12-21 15:44:50 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4218 to the iText, a JAVA-PDF library SVN repository, changing 44 files.
2009-12-21 15:40:19 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4214 to the iText, a JAVA-PDF library SVN repository, changing 2 files.
2009-12-21 15:30:47 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4213 to the iText, a JAVA-PDF library SVN repository, changing 31 files.
2009-12-21 15:30:23 UTC in iText, a JAVA-PDF library
-
trumpetinc committed revision 4212 to the iText, a JAVA-PDF library SVN repository, changing 7 files.
2009-12-21 15:26:30 UTC in iText, a JAVA-PDF library
-
Memory leaks are generally the result of member variables of objects - you should start there. Serializers are usually best implemented as stateless, immutable objects, so you might want to check your implementation and make sure that is the case.
My recommendation is to create a small application that just runs your serializer in a tight loop, and monitor with a profiler. In other words:
2009-12-20 15:09:53 UTC in jdbm