On 6/19/15 12:24 AM, Laurent Bourgès wrote:
As you wonder  if initial arrays are still necessary, I will run tonight
some benchmarks with initial arrays = [0].

"arrays = [0]" - is that arrays set to bucket 0 sizes?  That would be my guess 
as to how to proceed.

Exactly: I changed MarlinConst.INITIAL_ARRAY... to 0.
So initial arrays were created with size 0 or 1 that forced using array
caches.

By "bucket 0 sizes", I meant the size of the array in the first resize bucket, not the literal number 0.

My thoughts were that we would simply initialize the arrays to the smallest of the cached growable array sizes. This would eliminate even more cases where we need to resize, but at the expense of making the initial cost of the rasterizer larger. How much larger would that be - I didn't calculate. If you set them to the literal number 0, then we always immediately incur a resize overhead, no?

                                ...jim

Reply via email to