GNOME Bugzilla – Bug 640518
GMainLoop has quadratic complexity when all pollfd's have the same priority
Last modified: 2011-06-04 04:06:33 UTC
The worst-case cannot really be avoided, but the attached patch makes the common operations O(1) in the simple case of all pollfd's having the same priority.
Created attachment 179277 [details] [review] patch to convert to doubly-linked list
Lets hold this until 2.29, at this point
The following fix has been pushed: c5d9a46 avoid quadratic behavior of GMainLoop when all fd's have the same priority
Created attachment 189199 [details] [review] avoid quadratic behavior of GMainLoop when all fd's have the same priority