Reduced size by 706 bytes by removing virtual destructors.

This commit is contained in:
Benoit Blanchon
2014-11-08 17:13:41 +01:00
parent 1c450fd3aa
commit d8dbfe6e6d
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,10 @@ class JsonObject;
// fixed memory allocation.
class JsonBuffer {
public:
virtual ~JsonBuffer() {}
// CAUTION: NO VIRTUAL DESTRUCTOR!
// If we add a virtual constructor the Arduino compiler will add malloc() and
// free() to the binary, adding 706 useless bytes.
// virtual ~JsonBuffer() {}
// Allocates an empty JsonArray.
//