[bisq-network/bisq] Optimize some hotspots (#3214)
Christoph Sturm
notifications at github.com
Fri Sep 6 09:54:33 UTC 2019
christophsturm commented on this pull request.
> @@ -724,7 +725,8 @@ public void run() {
NetworkEnvelope networkEnvelope = networkProtoResolver.fromProto(proto);
lastReadTimeStamp = now;
- log.debug("<< Received networkEnvelope of type: " + networkEnvelope.getClass().getSimpleName());
+ if (log.isDebugEnabled())
+ log.debug("<< Received networkEnvelope of type: " + networkEnvelope.getClass().getSimpleName());
ok that will still do the `networkEnvelope.getClass().getSimpleName()` call but that's probably not expensive.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3214#discussion_r321662499
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190906/8406bad7/attachment.html>
More information about the bisq-github
mailing list