[OpenJDK Rasterizer] RFR: Marlin renderer #2
Jim Graham
james.graham at oracle.com
Fri Jun 19 22:33:09 UTC 2015
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
More information about the graphics-rasterizer-dev
mailing list