Support for PARTIAL_FLUSH in Deflater

2010-03-08 Thread Martin Buchholz
Hi FlaterMouses, We added support for various "flush modes" to Deflater, but we did not include support for PARTIAL_FLUSH. Because not even zlib.h is enthusiastic about PARTIAL_FLUSH: #define Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */ But it sure looks like Z_PARTIAL_FLUSH

Re: Re: Bugs in java.util.ArrayList, java.util.Hashtable and java.io.ByteArrayOutputStream

2010-03-08 Thread Martin Buchholz
2010/3/5 : > Hello, > > I'm using my own Collections if it's possible so I can add some thoughts: > > 1. I would decrease default array size to 4/6/8, for me it was few Mb more > of free memory ( i suggest testing on application that use at least 300Mb) > > I would test: > > initial size: 4 > long

Re: Bugs in java.util.ArrayList, java.util.Hashtable and java.io.ByteArrayOutputStream

2010-03-08 Thread Martin Buchholz
On Fri, Mar 5, 2010 at 02:48, Kevin L. Stern wrote: > Hi Martin, > > Thank you for your reply.  If I may, PriorityQueue appears to employ the > simple strategy that I suggested above in its grow method: > >     int newCapacity = ((oldCapacity < 64)? >    ((oldCapacity +

Re: Bugs in java.util.ArrayList, java.util.Hashtable and java.io.ByteArrayOutputStream

2010-03-08 Thread Martin Buchholz
[Chris or Alan, please review and file a bug] OK, guys, Here's a patch: http://cr.openjdk.java.net/~martin/webrevs/openjdk7/ArrayResize/ Martin On Fri, Mar 5, 2010 at 02:48, Kevin L. Stern wrote: > Hi Martin, > > Thank you for your reply.  If I may, PriorityQueue appears to employ the > simpl