Speedup for WLog_* macros, cache the log pointer
authorArmin Novak <armin.novak@gmail.com>
Sun, 15 Sep 2019 07:59:31 +0000 (09:59 +0200)
committerArmin Novak <armin.novak@gmail.com>
Sun, 15 Sep 2019 08:04:36 +0000 (10:04 +0200)
commitd46a3cb11da43b423eb828e5e36a2f656e0c2918
treea2a8cd4fc6a66d58218f289efd61f20cd921107c
parentf5e749f04ba42a7ea84aaf7dd5a26b986d754118
Speedup for WLog_* macros, cache the log pointer

WLog_Get(tag) is quite expensive if called repeatedly.
With this patch the pointer is cached on first call.
winpr/include/winpr/wlog.h