<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_metadata/src/native_libs.rs, branch 1.84.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-11-18T09:38:56+00:00</updated>
<entry>
<title>use `TypingEnv` when no `infcx` is available</title>
<updated>2024-11-18T09:38:56+00:00</updated>
<author>
<name>lcnr</name>
<email>rust@lcnr.de</email>
</author>
<published>2024-11-15T12:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9cba14b95bb07a5b31ed1aac2bf4eadd248232da'/>
<id>urn:sha1:9cba14b95bb07a5b31ed1aac2bf4eadd248232da</id>
<content type='text'>
the behavior of the type system not only depends on the current
assumptions, but also the currentnphase of the compiler. This is
mostly necessary as we need to decide whether and how to reveal
opaque types. We track this via the `TypingMode`.
</content>
</entry>
<entry>
<title>rustc_metadata: Preprocess search paths for better performance</title>
<updated>2024-11-15T09:35:33+00:00</updated>
<author>
<name>Piotr Osiewicz</name>
<email>24362066+osiewicz@users.noreply.github.com</email>
</author>
<published>2024-11-11T17:34:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42e71bb8ea2bf59fb33cf3f83a3dcf34e314f520'/>
<id>urn:sha1:42e71bb8ea2bf59fb33cf3f83a3dcf34e314f520</id>
<content type='text'>
Over in Zed we've noticed that loading crates for a large-ish workspace can take almost 200ms. We've pinned it down to how rustc searches for paths, as it performs a linear search over the list of candidate paths. In our case the candidate list had about 20k entries which we had to iterate over for each dependency being loaded.

This commit introduces a simple FilesIndex that's just a sorted Vec under the hood. Since crates are looked up by both prefix and suffix, we perform a range search on said Vec (which constraints the search space based on prefix) and follow up with a linear scan of entries with matching suffixes.
FilesIndex is also pre-filtered before any queries are performed using available target information; query prefixes/sufixes are based on the target we are compiling for, so we can remove entries that can never match up front.

Overall, this commit brings down build time for us in dev scenarios by about 6%.
100ms might not seem like much, but this is a constant cost that each of our workspace crates has to pay, even when said crate is miniscule.
</content>
</entry>
<entry>
<title>compiler: Directly use rustc_abi in metadata and middle</title>
<updated>2024-11-03T21:38:47+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-11-03T02:33:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=236fe33345072e6363560fd2b535a10947af86f7'/>
<id>urn:sha1:236fe33345072e6363560fd2b535a10947af86f7</id>
<content type='text'>
Stop reexporting ReprOptions from middle::ty
</content>
</entry>
<entry>
<title>nightly feature tracking: get rid of the per-feature bool fields</title>
<updated>2024-10-23T08:14:41+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-10-09T07:01:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad3991d30382676f987a38243b3097d880b9033a'/>
<id>urn:sha1:ad3991d30382676f987a38243b3097d880b9033a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement boolean lit support in cfg predicates</title>
<updated>2024-10-01T08:01:33+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2024-09-19T08:13:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c99f29b29fa4115436c352a921f9963b173b5608'/>
<id>urn:sha1:c99f29b29fa4115436c352a921f9963b173b5608</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `ast::NestedMetaItem` when evaluating cfg predicate</title>
<updated>2024-10-01T08:01:09+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2024-09-18T15:44:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57b9b1f9745a56943cc0aebc4c3ec487945f044e'/>
<id>urn:sha1:57b9b1f9745a56943cc0aebc4c3ec487945f044e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MsvcLinker: allow linking dynamically to Meson and MinGW-style named libraries</title>
<updated>2024-09-08T14:40:28+00:00</updated>
<author>
<name>L. E. Segovia</name>
<email>amy@amyspark.me</email>
</author>
<published>2024-04-03T23:08:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=98481be353b3be34be684a11c467b72992561fde'/>
<id>urn:sha1:98481be353b3be34be684a11c467b72992561fde</id>
<content type='text'>
Fixes #122455
</content>
</entry>
<entry>
<title>linker: Synchronize native library search in rustc and linker</title>
<updated>2024-08-27T19:13:31+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-08-14T17:16:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a1c36c6ae9e6036b89e4c4b9cec2ce2e375b2a85'/>
<id>urn:sha1:a1c36c6ae9e6036b89e4c4b9cec2ce2e375b2a85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_metadata: make "link {arg,cfg} is unstable" translatable</title>
<updated>2024-08-10T11:32:56+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>GrigorenkoPV@ya.ru</email>
</author>
<published>2024-08-08T22:22:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=007cc2c23a058efb9c4db5233478f458cfe9ccfe'/>
<id>urn:sha1:007cc2c23a058efb9c4db5233478f458cfe9ccfe</id>
<content type='text'>
</content>
</entry>
</feed>
