From 1ae608639c26897614af62e32b132b163f70aeee Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Mon, 14 Feb 2022 21:49:27 +0100 Subject: [PATCH] Comment fix --- mqttpacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqttpacket.cpp b/mqttpacket.cpp index 14be782..1d9030f 100644 --- a/mqttpacket.cpp +++ b/mqttpacket.cpp @@ -70,7 +70,7 @@ std::shared_ptr MqttPacket::getCopy(char new_max_qos) const { // if shrinking the packet doesn't alter the amount of bytes in the 'remaining length' part of the header, we can // just memmove+shrink the packet. This is because the packet id always is two bytes before the payload, so we just move the payload - // over it. When testing 100M copies, it went from 21000 ms to 10000 ms. In other words, about 100 µs to 200 µs per copy. + // over it. When testing 100M copies, it went from 21000 ms to 10000 ms. In other words, about 200 ns to 100 ns per copy. // There is an elaborate unit test to test this optimization. if ((fixed_header_length == 2 && bites.size() < 125)) { -- libgit2 0.21.4