Andrew Chernow <[email protected]> writes:
> + * This function is executed for every notification found in the queue in
> order
> + * to check if the current backend is listening on that channel. Not sure
> if we
> + * should further optimize this, for example convert to a sorted array and
> + * allow binary search on it...
> I think a bsearch would be needed. Very busy servers that make heavy use of
> notifies would be quite a penalty.
Premature optimization is the root of all evil ;-). Unless you've done
some profiling and can show that this is a hot spot, making it more
complicated isn't the thing to be doing now.
regards, tom lane
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers