mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
os: always check if client is local when connection is accepted
LocalClient is used for all DRI2 requests that makes it frequently called function. Querying if connection is local or not takes 10-15us (on ARM) depending on malloc speed. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
617b7d2211
commit
2d67ada3c4
3 changed files with 17 additions and 6 deletions
|
|
@ -746,6 +746,7 @@ AllocNewConnection (XtransConnInfo trans_conn, int fd, CARD32 conn_time)
|
|||
free(oc);
|
||||
return NullClient;
|
||||
}
|
||||
oc->local_client = ComputeLocalClient(client);
|
||||
#if !defined(WIN32)
|
||||
ConnectionTranslation[fd] = client->index;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue