Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit f987e3b

Browse files
committed
added savings to todo comment
1 parent 06441a1 commit f987e3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/thing/Config.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ int ConfigJsonSerializer::content_length() const {
3333

3434
void ConfigJsonSerializer::SerializeTo(Stream* output) {
3535
// TODO: We "should" be able to have the root_ print directly to the stream
36-
// however it currently closes the connection half way through.
36+
// however it currently closes the connection half way through. Fixing this
37+
// would save ~250B of memory during serialization.
3738
String buffer;
3839
root_->printTo(buffer);
3940
output->print(buffer);

0 commit comments

Comments
 (0)