<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/tests/vec.rs, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-07-28T00:51:13+00:00</updated>
<entry>
<title>mv std libs to library/</title>
<updated>2020-07-28T00:51:13+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-06-12T02:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c31b45ae878b821975c4ebd94cc1e49f6073fd0'/>
<id>urn:sha1:2c31b45ae878b821975c4ebd94cc1e49f6073fd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #71660 - sollyucko:master, r=dtolnay</title>
<updated>2020-06-22T12:53:46+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-06-22T12:53:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8da1dd0215791b0e20ea25d1bf706757d1f3da81'/>
<id>urn:sha1:8da1dd0215791b0e20ea25d1bf706757d1f3da81</id>
<content type='text'>
impl PartialEq&lt;Vec&lt;B&gt;&gt; for &amp;[A], &amp;mut [A]

https://github.com/rust-lang/rfcs/issues/2917
</content>
</entry>
<entry>
<title>impl PartialEq&lt;Vec&lt;B&gt;&gt; for &amp;[A], &amp;mut [A]</title>
<updated>2020-06-20T22:51:20+00:00</updated>
<author>
<name>Solomon Ucko</name>
<email>solly.ucko@gmail.com</email>
</author>
<published>2020-04-29T02:40:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc60282daea83a5deff651e6c5a93dbad4437be7'/>
<id>urn:sha1:fc60282daea83a5deff651e6c5a93dbad4437be7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove uses of `Vec::remove_item`</title>
<updated>2020-06-20T10:12:28+00:00</updated>
<author>
<name>Lukas Kalbertodt</name>
<email>lukas.kalbertodt@gmail.com</email>
</author>
<published>2020-06-20T09:38:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e6e082039a52c03a2ca93c0483e86b3c7f67af4'/>
<id>urn:sha1:1e6e082039a52c03a2ca93c0483e86b3c7f67af4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Migrate to numeric associated consts</title>
<updated>2020-06-10T01:35:47+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-06-02T07:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fff822fead6249671cbcb090b24bce58fab38de0'/>
<id>urn:sha1:fff822fead6249671cbcb090b24bce58fab38de0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use assert_eq for liballoc test</title>
<updated>2020-06-05T08:56:51+00:00</updated>
<author>
<name>Ivan Tham</name>
<email>pickfire@riseup.net</email>
</author>
<published>2020-06-05T08:56:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b54a917b1420f709d74b80e99c819ffe3e403ffa'/>
<id>urn:sha1:b54a917b1420f709d74b80e99c819ffe3e403ffa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tiny Vecs are dumb.</title>
<updated>2020-05-18T05:26:59+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2020-05-17T19:28:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f4b9dc31f68ff5b3dd19a22c4a3e3eefeaa0611a'/>
<id>urn:sha1:f4b9dc31f68ff5b3dd19a22c4a3e3eefeaa0611a</id>
<content type='text'>
Currently, if you repeatedly push to an empty vector, the capacity
growth sequence is 0, 1, 2, 4, 8, 16, etc. This commit changes the
relevant code (the "amortized" growth strategy) to skip 1 and 2 in most
cases, instead using 0, 4, 8, 16, etc. (You can still get a capacity of
1 or 2 using the "exact" growth strategy, e.g. via `reserve_exact()`.)

This idea (along with the phrase "tiny Vecs are dumb") comes from the
"doubling" growth strategy that was removed from `RawVec` in #72013.
That strategy was barely ever used -- only when a `VecDeque` was grown,
oddly enough -- which is why it was removed in #72013.

(Fun fact: until just a few days ago, I thought the "doubling" strategy
was used for repeated push case. In other words, this commit makes
`Vec`s behave the way I always thought they behaved.)

This change reduces the number of allocations done by rustc itself by
10% or more. It speeds up rustc, and will also speed up any other Rust
program that uses `Vec`s a lot.
</content>
</entry>
<entry>
<title>Disable try_reserve tests on Android</title>
<updated>2020-04-09T14:55:12+00:00</updated>
<author>
<name>Amanieu d'Antras</name>
<email>amanieu@gmail.com</email>
</author>
<published>2020-04-09T14:55:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7060a9e68325f1009d2ffd6c87e00f0f7d013d8e'/>
<id>urn:sha1:7060a9e68325f1009d2ffd6c87e00f0f7d013d8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #70777 - faern:use-assoc-int-consts2, r=dtolnay</title>
<updated>2020-04-05T16:47:45+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-04-05T16:47:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2595539e7fd3e8b1986d30c25d8bf8717402bec'/>
<id>urn:sha1:c2595539e7fd3e8b1986d30c25d8bf8717402bec</id>
<content type='text'>
Don't import integer and float modules, use assoc consts

Stop importing the standard library integer and float modules to reach the `MIN`, `MAX` and other constants. They are available directly on the primitive types now.

This PR is a follow up of #69860 which made sure we use the new constants in documentation.

This type of change touches a lot of files, and previously all my assoc int consts PRs had collisions and were accepted only after a long delay. So I'd prefer to do it in smaller steps now. Just removing these imports seem like a good next step.

r? @dtolnay
</content>
</entry>
<entry>
<title>Stop importing integer modules in liballoc</title>
<updated>2020-04-05T09:22:01+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-04-04T15:24:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fff4f083986cb5f0430a78feb139603f0ceeb9c1'/>
<id>urn:sha1:fff4f083986cb5f0430a78feb139603f0ceeb9c1</id>
<content type='text'>
</content>
</entry>
</feed>
