<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/string.rs, branch 1.32.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.32.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.32.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-12-02T07:08:08+00:00</updated>
<entry>
<title>Update issue number of `shrink_to` methods to point the tracking issue</title>
<updated>2018-12-02T07:08:08+00:00</updated>
<author>
<name>Hidehito Yabuuchi</name>
<email>hdht.ybuc@gmail.com</email>
</author>
<published>2018-12-02T07:07:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e18cc916f653d5bea212bddded8960f548a975d'/>
<id>urn:sha1:1e18cc916f653d5bea212bddded8960f548a975d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>String: add a FIXME to from_utf16</title>
<updated>2018-11-21T09:17:54+00:00</updated>
<author>
<name>ljedrz</name>
<email>ljedrz@gmail.com</email>
</author>
<published>2018-11-21T09:17:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=591607d237665857880e16899788517b9b82d414'/>
<id>urn:sha1:591607d237665857880e16899788517b9b82d414</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #55530 - ljedrz:speed_up_String_from_utf16, r=SimonSapin</title>
<updated>2018-11-15T10:04:31+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro@pietroalbini.org</email>
</author>
<published>2018-11-15T10:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b404349407e7a63730078a2d81d6c86f7f965b3'/>
<id>urn:sha1:3b404349407e7a63730078a2d81d6c86f7f965b3</id>
<content type='text'>
Speed up String::from_utf16

Collecting into a `Result` is idiomatic, but not necessarily fast due to rustc not being able to preallocate for the resulting collection. This is fine in case of an error, but IMO we should optimize for the common case, i.e. a successful conversion.

This changes the behavior of `String::from_utf16` from collecting into a `Result` to pushing to a preallocated `String` in a loop.

According to [my simple benchmark](https://gist.github.com/ljedrz/953a3fb74058806519bd4d640d6f65ae) this change makes `String::from_utf16` around **twice** as fast.
</content>
</entry>
<entry>
<title>Minor style guide corrections.</title>
<updated>2018-11-11T19:11:25+00:00</updated>
<author>
<name>Denis Vasilik</name>
<email>contact@denisvasilik.com</email>
</author>
<published>2018-11-11T19:11:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe'/>
<id>urn:sha1:6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace cleanup according to Rust's style guidelines.</title>
<updated>2018-11-11T15:58:00+00:00</updated>
<author>
<name>Denis Vasilik</name>
<email>contact@denisvasilik.com</email>
</author>
<published>2018-11-11T15:58:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dc0fd65af23bec1de6ae0608c40f0bbcb52d4747'/>
<id>urn:sha1:dc0fd65af23bec1de6ae0608c40f0bbcb52d4747</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added comments for trait implementations.</title>
<updated>2018-11-11T14:44:15+00:00</updated>
<author>
<name>Denis Vasilik</name>
<email>contact@denisvasilik.com</email>
</author>
<published>2018-11-11T14:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0bfbd3e7201c59b5e155298fc4bdd0acece8992'/>
<id>urn:sha1:f0bfbd3e7201c59b5e155298fc4bdd0acece8992</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added comment for From trait implementation: boxed string slice to String</title>
<updated>2018-11-11T14:43:43+00:00</updated>
<author>
<name>Denis Vasilik</name>
<email>contact@denisvasilik.com</email>
</author>
<published>2018-11-10T09:23:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93b5112c16ec79d545826b8af1c7c27535330e77'/>
<id>urn:sha1:93b5112c16ec79d545826b8af1c7c27535330e77</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco</title>
<updated>2018-11-07T13:27:00+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2018-11-07T10:02:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9d9146ad957494821aa3d54aedf4dbcb6c3b7cea'/>
<id>urn:sha1:9d9146ad957494821aa3d54aedf4dbcb6c3b7cea</id>
<content type='text'>
refactor: use shorthand fields

refactor: use shorthand for single fields everywhere (excluding tests).
</content>
</entry>
<entry>
<title>refactor: use shorthand fields</title>
<updated>2018-11-06T20:05:44+00:00</updated>
<author>
<name>teresy</name>
<email>hi.teresy@gmail.com</email>
</author>
<published>2018-11-06T20:05:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eca11b99a7d25e4e6573472a16537c1aacb5d5e1'/>
<id>urn:sha1:eca11b99a7d25e4e6573472a16537c1aacb5d5e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Speed up String::from_utf16</title>
<updated>2018-10-31T09:22:22+00:00</updated>
<author>
<name>ljedrz</name>
<email>ljedrz@gmail.com</email>
</author>
<published>2018-10-31T09:22:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19aa10132cc727c8561730ab096b21d14507c81d'/>
<id>urn:sha1:19aa10132cc727c8561730ab096b21d14507c81d</id>
<content type='text'>
</content>
</entry>
</feed>
