diff options
author | Nico Kruber <[email protected]> | 2013-01-25 16:12:41 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-04 09:52:34 +0100 |
commit | 9239bca48cad7653b43f89f71c49b3d0be682c51 (patch) | |
tree | 6ae33e05457f01ffce635b548b100c1aeeb278f6 /lib/cosEventDomain/info | |
parent | 8e5e2a11f069935644ff5404ffd8758773834f29 (diff) | |
download | otp-9239bca48cad7653b43f89f71c49b3d0be682c51.tar.gz otp-9239bca48cad7653b43f89f71c49b3d0be682c51.tar.bz2 otp-9239bca48cad7653b43f89f71c49b3d0be682c51.zip |
jinterface: don't return compressed external term if bigger than uncompressed
Now, OtpOutputStream#write_compressed() uses the same mechanism as erts_term_to_binary() in external.c: it tries to compress the given term into a buffer of the size of the uncompressed term and if this is not possible, i.e. the compression plus headers is bigger, it uses the uncompressed external term format instead.
Diffstat (limited to 'lib/cosEventDomain/info')
0 files changed, 0 insertions, 0 deletions