Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2017 19:37:35 -0700
From:      Matt Joras <mjoras@FreeBSD.org>
To:        Ian Lepore <ian@freebsd.org>, "freebsd-arch@FreeBSD.org" <freebsd-arch@FreeBSD.org>
Subject:   Re: Allow faster eventhandler dispatching by keeping pointers to handler lists.
Message-ID:  <3a71dd31-99cb-c891-9d52-a7f2e7010011@FreeBSD.org>
In-Reply-To: <1509243567.56824.103.camel@freebsd.org>
References:  <1509243567.56824.103.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/28/2017 19:19, Ian Lepore wrote:
> There has been some talk lately of the kernel eventhandler mechanism
> being inefficient due to holding a lock while walking a global list
> doing strcmp() to find the right list of handlers.  I've posted a
> phabricator review to alleviate that by allowing high-frequency events
> to pre-define the event list and keep a pointer to it, to avoid the
> name lookups.
>
> https://reviews.freebsd.org/D12821
>
> -- Ian
> _______________________________________________
> freebsd-arch@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"

Hah, as it happens I just posted a revision with largely the same
intention, though I approached the problem a bit differently:
https://reviews.freebsd.org/D12814.

Matt




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a71dd31-99cb-c891-9d52-a7f2e7010011>