<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/jinterface/java_src/com, branch OTP-17.1.1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>erts: Add distribution capability flag for maps DFLAG_MAP_TAG</title>
<updated>2014-03-14T14:08:23+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2014-03-13T14:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a996e168bfebe599cfe393cd132a87984d905d84'/>
<id>a996e168bfebe599cfe393cd132a87984d905d84</id>
<content type='text'>
This is just a preparation to allow detection of older nodes
that do not understand maps (R16 and older).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is just a preparation to allow detection of older nodes
that do not understand maps (R16 and older).
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Change external format for maps</title>
<updated>2014-03-14T14:08:23+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2014-03-12T19:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c543d5bff7fb23c3f44cc4817c0654117de78919'/>
<id>c543d5bff7fb23c3f44cc4817c0654117de78919</id>
<content type='text'>
to be: 116,Arity, K1,V1,K2,V2,...,Kn,Vn

instead of: 116,Arity, K1,K2,...,Kn, V1,V2,....,Vn

We think this will be better for future internal map structures
like HAMT. Would be bad if we need to iterate twice over HAMT
in term_to_binary, one for keys and one for values.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to be: 116,Arity, K1,V1,K2,V2,...,Kn,Vn

instead of: 116,Arity, K1,K2,...,Kn, V1,V2,....,Vn

We think this will be better for future internal map structures
like HAMT. Would be bad if we need to iterate twice over HAMT
in term_to_binary, one for keys and one for values.
</pre>
</div>
</content>
</entry>
<entry>
<title>jinterface: implement support for maps</title>
<updated>2014-02-11T18:48:53+00:00</updated>
<author>
<name>Vlad Dumitrescu</name>
<email>vladdu55@gmail.com</email>
</author>
<published>2014-02-11T13:17:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=2b4582d2154b157092fc05c387655e5426ed7d8e'/>
<id>2b4582d2154b157092fc05c387655e5426ed7d8e</id>
<content type='text'>
The API and implementation are simplistic, like for lists and tuples,
using arrays and without any connection to java.util.Map.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The API and implementation are simplistic, like for lists and tuples,
using arrays and without any connection to java.util.Map.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years</title>
<updated>2013-02-22T16:54:39+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2013-02-22T16:54:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=acc8e607aaeedcfb4cf9b6d2e0953a6a12b5b94a'/>
<id>acc8e607aaeedcfb4cf9b6d2e0953a6a12b5b94a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nk/jinterface_dont_compress_if_size_increased/OTP-10822'</title>
<updated>2013-02-13T14:09:45+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-02-13T14:09:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=14254702c27e9010f65cab69cd2829b00012d7ff'/>
<id>14254702c27e9010f65cab69cd2829b00012d7ff</id>
<content type='text'>
* nk/jinterface_dont_compress_if_size_increased/OTP-10822:
  jinterface, OtpOutputStream: add a write_compressed(object, level) method
  jinterface: fix a memory leak
  jinterface: new limited OutputStream implementation without the need to resize
  jinterface: don't return compressed external term if bigger than uncompressed
  jinterface: don't compress small erlang terms &lt; 5 bytes
  jinterface, OtpOutputStream: properly override the three write() methods to ensure our growth strategy
  jinterface: fix typo in error message if encoding fails
  jinterface: don't need another FilterOutputStream wrapper
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nk/jinterface_dont_compress_if_size_increased/OTP-10822:
  jinterface, OtpOutputStream: add a write_compressed(object, level) method
  jinterface: fix a memory leak
  jinterface: new limited OutputStream implementation without the need to resize
  jinterface: don't return compressed external term if bigger than uncompressed
  jinterface: don't compress small erlang terms &lt; 5 bytes
  jinterface, OtpOutputStream: properly override the three write() methods to ensure our growth strategy
  jinterface: fix typo in error message if encoding fails
  jinterface: don't need another FilterOutputStream wrapper
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'vd/jinterface_windows_cookie/OTP-10821'</title>
<updated>2013-02-12T11:08:37+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-02-12T11:08:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5bb22560c350baa834196835640a5aab21e97f8a'/>
<id>5bb22560c350baa834196835640a5aab21e97f8a</id>
<content type='text'>
* vd/jinterface_windows_cookie/OTP-10821:
  jinterface: fix finding cookie file on windows
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* vd/jinterface_windows_cookie/OTP-10821:
  jinterface: fix finding cookie file on windows
</pre>
</div>
</content>
</entry>
<entry>
<title>jinterface, OtpOutputStream: add a write_compressed(object, level) method</title>
<updated>2013-02-04T08:52:34+00:00</updated>
<author>
<name>Nico Kruber</name>
<email>kruber@zib.de</email>
</author>
<published>2013-01-28T19:05:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=283569b8ede00003c24776961e77051f37dc5594'/>
<id>283569b8ede00003c24776961e77051f37dc5594</id>
<content type='text'>
Now that we use an own deflater, we can also allow the user to specify the compression level as in Erlang's term_to_binary/2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we use an own deflater, we can also allow the user to specify the compression level as in Erlang's term_to_binary/2.
</pre>
</div>
</content>
</entry>
<entry>
<title>jinterface: fix a memory leak</title>
<updated>2013-02-04T08:52:34+00:00</updated>
<author>
<name>Nico Kruber</name>
<email>kruber@zib.de</email>
</author>
<published>2013-01-28T19:01:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d78f2ee3f2bd9ce38d77d70c0893e16b9d0f8df4'/>
<id>d78f2ee3f2bd9ce38d77d70c0893e16b9d0f8df4</id>
<content type='text'>
after the first try to compress the value with a fixed buffer size, the deflater must be closed so that memory can be (instantly) reused
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
after the first try to compress the value with a fixed buffer size, the deflater must be closed so that memory can be (instantly) reused
</pre>
</div>
</content>
</entry>
<entry>
<title>jinterface: new limited OutputStream implementation without the need to resize</title>
<updated>2013-02-04T08:52:34+00:00</updated>
<author>
<name>Nico Kruber</name>
<email>kruber@zib.de</email>
</author>
<published>2013-01-28T18:43:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=bae8d6a4f357f8c9be0661e80a9d163fba56ee7c'/>
<id>bae8d6a4f357f8c9be0661e80a9d163fba56ee7c</id>
<content type='text'>
(saves memory re-allocations)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(saves memory re-allocations)
</pre>
</div>
</content>
</entry>
<entry>
<title>jinterface: don't return compressed external term if bigger than uncompressed</title>
<updated>2013-02-04T08:52:34+00:00</updated>
<author>
<name>Nico Kruber</name>
<email>kruber@zib.de</email>
</author>
<published>2013-01-25T15:12:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9239bca48cad7653b43f89f71c49b3d0be682c51'/>
<id>9239bca48cad7653b43f89f71c49b3d0be682c51</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
