<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/encoding.c, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) c7ce2f537f96ab2cf2f5fc2982d6147866ff5340: [Backport #20304]</title>
<updated>2024-07-15T04:24:57+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2024-07-15T04:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=519d164b6682a8b9fde2b1d5ab7d74f54c4f0224'/>
<id>519d164b6682a8b9fde2b1d5ab7d74f54c4f0224</id>
<content type='text'>
	Fix memory leak in setting encodings

	There is a memory leak in Encoding.default_external= and
	Encoding.default_internal= because the duplicated name is not freed
	when overwriting.

	    10.times do
	      1_000_000.times do
	        Encoding.default_internal = nil
	      end

	      puts `ps -o rss= -p #{$$}`
	    end

	Before:

	     25664
	     41504
	     57360
	     73232
	     89168
	    105056
	    120944
	    136816
	    152720
	    168576

	After:

	    9648
	    9648
	    9648
	    9680
	    9680
	    9680
	    9680
	    9680
	    9680
	    9680
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix memory leak in setting encodings

	There is a memory leak in Encoding.default_external= and
	Encoding.default_internal= because the duplicated name is not freed
	when overwriting.

	    10.times do
	      1_000_000.times do
	        Encoding.default_internal = nil
	      end

	      puts `ps -o rss= -p #{$$}`
	    end

	Before:

	     25664
	     41504
	     57360
	     73232
	     89168
	    105056
	    120944
	    136816
	    152720
	    168576

	After:

	    9648
	    9648
	    9648
	    9680
	    9680
	    9680
	    9680
	    9680
	    9680
	    9680
</pre>
</div>
</content>
</entry>
<entry>
<title>surpress warning</title>
<updated>2022-12-16T02:12:37+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2022-12-16T02:12:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dbf77d420d49e541c59f4c14b8e56d3e7af689aa'/>
<id>dbf77d420d49e541c59f4c14b8e56d3e7af689aa</id>
<content type='text'>
now `enc_table-&gt;list` is not a pointer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
now `enc_table-&gt;list` is not a pointer.
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed encoding table</title>
<updated>2022-12-16T01:04:37+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2022-12-15T08:53:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ae19ac5b5ba1e613a788addeb6d4d67fa65f6518'/>
<id>ae19ac5b5ba1e613a788addeb6d4d67fa65f6518</id>
<content type='text'>
This reduces global lock acquiring for reading.
https://bugs.ruby-lang.org/issues/18949
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reduces global lock acquiring for reading.
https://bugs.ruby-lang.org/issues/18949
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove get_actual_encoding() and the dynamic endian detection for dummy UTF-16/UTF-32</title>
<updated>2022-09-12T12:02:34+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-09-10T17:15:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6525b6f760ccd9612c9546b0313ab1c7e4af5e66'/>
<id>6525b6f760ccd9612c9546b0313ab1c7e4af5e66</id>
<content type='text'>
* And simplify callers of get_actual_encoding().
* See [Feature #18949].
* See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* And simplify callers of get_actual_encoding().
* See [Feature #18949].
* See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate Encoding#replicate</title>
<updated>2022-09-10T17:02:15+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-09-03T10:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=14bcf69c9c36875c7956d0ec8c04bfeaec514dd1'/>
<id>14bcf69c9c36875c7956d0ec8c04bfeaec514dd1</id>
<content type='text'>
* See [Feature #18949].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* See [Feature #18949].
</pre>
</div>
</content>
</entry>
<entry>
<title>Expand tabs [ci skip]</title>
<updated>2022-07-21T16:42:04+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-07-21T16:23:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5b21e94bebed90180d8ff63dad03b8b948361089'/>
<id>5b21e94bebed90180d8ff63dad03b8b948361089</id>
<content type='text'>
[Misc #18891]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Misc #18891]
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT</title>
<updated>2022-07-19T06:48:56+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2022-07-13T09:54:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d084585f01b57727a5778f2f6723b89c6d98a9d4'/>
<id>d084585f01b57727a5778f2f6723b89c6d98a9d4</id>
<content type='text'>
Otherwise it's way too easy to confuse it with US_ASCII.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise it's way too easy to confuse it with US_ASCII.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Main doc for encodings moved from encoding.c to doc/encodings.rdoc (#5748)</title>
<updated>2022-04-02T01:41:04+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-04-02T01:41:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=81741690a0cc6a244821cf4c80030afa2bbc2565'/>
<id>81741690a0cc6a244821cf4c80030afa2bbc2565</id>
<content type='text'>
Main doc for encodings moved from encoding.c to doc/encodings.rdoc</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Main doc for encodings moved from encoding.c to doc/encodings.rdoc</pre>
</div>
</content>
</entry>
<entry>
<title>suppress warnings for probable NULL dererefences</title>
<updated>2021-10-24T10:24:50+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2017-10-25T09:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7459a32af3e89ea9990efb4d76bfdc869e480ffe'/>
<id>7459a32af3e89ea9990efb4d76bfdc869e480ffe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>include/ruby/encoding.h: convert macros into inline functions</title>
<updated>2021-10-05T05:18:23+00:00</updated>
<author>
<name>卜部昌平</name>
<email>shyouhei@ruby-lang.org</email>
</author>
<published>2021-09-29T03:58:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5112a548467e04ebdb386f0cc7bacb29f38d3fd2'/>
<id>5112a548467e04ebdb386f0cc7bacb29f38d3fd2</id>
<content type='text'>
Less macros == huge win.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Less macros == huge win.
</pre>
</div>
</content>
</entry>
</feed>
