mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
Heap fragmentation optimization
Moving object creation to task constructors
This commit is contained in:
@@ -71,6 +71,9 @@ public:
|
||||
}
|
||||
|
||||
bool result = this->writer->publish(topic, doc, true);
|
||||
doc.clear();
|
||||
doc.shrinkToFit();
|
||||
|
||||
if (this->eventPublishCallback) {
|
||||
this->eventPublishCallback(topic, result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user