[Mesa-dev] [PATCH 31/53] i965/drm: Switch from uthash to Mesa's hash table.

Chris Wilson chris at chris-wilson.co.uk
Wed Apr 5 10:50:07 UTC 2017


On Tue, Apr 04, 2017 at 05:10:21PM -0700, Kenneth Graunke wrote:
> No performance data has been gathered about this choice.  I just don't
> want that many hash tables.

Yup. This is not performance critical either, you simply should not be
recreating that many handles from scratch - scalablity is far more
important. It used to be a linear list which for a stress test of many
hundreds of thousands of bo was unconscionable.

I choose uthash simply for its license and convenience. Mesa should have
a dense integer focused hash/idr. (And one day it will ;)

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the mesa-dev mailing list