Refrain from pushing too much logging trafic.

In this patch we hard-code some cases when we know the log message won't be
displayed anywhere so as to avoid sending it to the monitor thread. It
certainly is a modularity violation, but given the performance impact...
This commit is contained in:
Dimitri Fontaine 2017-06-17 17:55:03 +02:00
parent 422fab646a
commit 6c931975de

View File

@ -36,9 +36,10 @@
(defun log-message (category description &rest arguments)
"Send given message into our monitoring queue for processing."
(send-event (make-log-message :category category
:description description
:arguments arguments)))
(when (cl-log::category-messengers category)
(send-event (make-log-message :category category
:description description
:arguments arguments))))
(defun new-label (section label &optional dbname)
"Send an event to create a new LABEL for registering a shared state under