Allow faster eventhandler dispatching by keeping pointers to handler lists.

Matt Joras mjoras at FreeBSD.org
Sun Oct 29 03:00:48 UTC 2017


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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at 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



More information about the freebsd-arch mailing list