This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch improve_async_appender
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/improve_async_appender by this 
push:
     new fc8ee312 A read-only dispatch thread improves performance by 30%
fc8ee312 is described below

commit fc8ee312588262cd37b88f4e5f4eabb2f53a7074
Author: Stephen Webb <[email protected]>
AuthorDate: Fri Mar 8 17:30:49 2024 +1100

    A read-only dispatch thread improves performance by 30%
---
 src/main/cpp/asyncappender.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/cpp/asyncappender.cpp b/src/main/cpp/asyncappender.cpp
index 307abbd9..a7265a51 100644
--- a/src/main/cpp/asyncappender.cpp
+++ b/src/main/cpp/asyncappender.cpp
@@ -595,7 +595,6 @@ void AsyncAppender::dispatch()
                        else
                                isActive = false;
                        auto next = eventList->next;
-                       *eventList = AtomicQueue::Node();
                        eventList = next;
                }
                {

Reply via email to