diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-02-06 20:54:25 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-02-06 20:54:25 +0200 |
commit | 4ba6a3027d7a5d8c17abeb031622389f8be234fe (patch) | |
tree | 3c2fdba47e9b9c11a0e3b0996c9f733abb4c07c1 /docs | |
parent | 39b8a5e2bbd5da85f23b48280e81a5ce6672b09d (diff) |
Add compile-time option PB_BUFFER_ONLY.
This allows slight optimizations if only memory buffer support
(as opposed to stream callbacks) is wanted. On ARM difference
is -12% execution time, -4% code size when enabled.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/reference.rst b/docs/reference.rst index 2b10c2ee..fee1b702 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -22,6 +22,8 @@ PB_FIELD_32BIT Add support for tag numbers > 65535 and fields la Increases code size 9 bytes per each field. Compiler error will tell if you need this. PB_NO_ERRMSG Disables the support for error messages; only error information is the true/false return value. Decreases the code size by a few hundred bytes. +PB_BUFFER_ONLY Disables the support for custom streams. Only supports encoding to memory buffers. + Speeds up execution and decreases code size slightly. ============================ ================================================================================================ The PB_MAX_REQUIRED_FIELDS, PB_FIELD_16BIT and PB_FIELD_32BIT settings allow raising some datatype limits to suit larger messages. |