[PATCH xserver] dix: Bump MAXHASHSIZE for the resource db

Keith Packard keithp at keithp.com
Wed Oct 5 22:08:18 UTC 2016


Adam Jackson <ajax at redhat.com> writes:

> From: Roberto Ragusa <mail at robertoragusa.it>
>
> [This was originally a workaround for a client-side resource leak:
>
> http://lists.freedesktop.org/archives/xorg-devel/2012-November/034555.html
>
> Obviously that's a broken app, but the performance problem it
> illustrates - that walking the linked list ends up burning all your CPU
> time - is real enough. - ajax]
>
> Reviewed-by: Adam Jackson <ajax at redhat.com>

Can we just eliminate the silly switch and compute the "right" values to
use here? This computes the same value for numBits from 6-16, except for
7 (which just looks wrong).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dix-Bump-MAXHASHSIZE-for-the-resource-db-v2.patch
Type: text/x-diff
Size: 2260 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161005/bc080b0b/attachment.patch>
-------------- next part --------------

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161005/bc080b0b/attachment.sig>


More information about the xorg-devel mailing list