diff options
author | Sverker Eriksson <[email protected]> | 2018-03-01 12:27:48 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-03-02 19:16:48 +0100 |
commit | c10e3e1fc83cbccd1c8c3b377e2309ea8fa27572 (patch) | |
tree | ac540798d79971e55d1d1a0f7a70644b3bf91235 /erts/emulator/beam/dist.h | |
parent | 7fb3ed7d2731050186eb5224fe8e6050e4909341 (diff) | |
download | otp-c10e3e1fc83cbccd1c8c3b377e2309ea8fa27572.tar.gz otp-c10e3e1fc83cbccd1c8c3b377e2309ea8fa27572.tar.bz2 otp-c10e3e1fc83cbccd1c8c3b377e2309ea8fa27572.zip |
erts: Optimize dist transcoding toward erl_/jinterface
to only transcode if output buffer actually contains
unsupported BIT_BINARY_EXT or EXPORT_EXT.
Diffstat (limited to 'erts/emulator/beam/dist.h')
-rw-r--r-- | erts/emulator/beam/dist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/dist.h b/erts/emulator/beam/dist.h index e8dcdb669d..000c66a00f 100644 --- a/erts/emulator/beam/dist.h +++ b/erts/emulator/beam/dist.h @@ -55,9 +55,8 @@ /* * Additional optimistic flags when encoding toward pending connection. - * If remote node does not supporting these (erl_interface) - * then we will need to transcode all messages enqueued before - * connection setup was finished. + * If remote node (erl_interface) does not supporting these then we may need + * to transcode messages enqueued before connection setup was finished. */ #define DFLAG_DIST_HOPEFULLY (DFLAG_EXPORT_PTR_TAG \ | DFLAG_BIT_BINARIES \ @@ -355,6 +354,7 @@ typedef struct TTBSizeContext_ { typedef struct TTBEncodeContext_ { Uint flags; + Uint hopefull_flags; int level; byte* ep; Eterm obj; |