Rust language revs up compiler speed

Rust language revs up compiler speed

With the release of Rust 1.13, developers have improved compiler performance and security for the programming language. An issue remains, however, with code generation for ARM processors.

For better compiler performance, Rust 1.13 uses optimization to cache normalized projections during translation. With the generation of the LLVM IR (intermediate representation), the compiler no longer has to recompute concrete instances of associated types each time; instead, it reuses previously computed values.

“This optimization doesn’t affect all code bases, but in code bases that exhibit certain patterns, like futures-rs, where debug mode build-time improved by up to 40 percent, you’ll notice the difference,” the Rust Core Team said. Another optimization boosts compile time for crates (aka packages) exporting many inline functions.

Rust 1.13’s improved security arrives via the Cargo package manager, specifically through updates to the curl tool for transferring data and OpenSSL. But Rust still contains a “serious” bug in code generation for ARM targets using hardware floats—that is, most of them. “ARM targets in Rust are presently in our second support tier, so this bug was not determined to block the release,” the team said. “Because 1.13 contains a security update, users that must target ARM are encouraged to use the 1.14 betas, which will soon get a fix for ARM.”

To handle errors, the upgrade features a ? operator to reduce “visual noise.” The operator improves error-messaging. Rust 1.13 also features small changes to documentation. 

Sponsored by Mozilla, Rust is geared for concurrency, safety, and speed. Proponents have laid out a plan for 2017 in which the language will be easier to use while still focusing on speed and reliability. The upgrade is currently available for download.

IDG Insider


«Fight the talent shortage with citizen developers


10 resume do’s and don’ts for developers»
IDG Connect

IDG Connect tackles the tech stories that matter to you

Recommended for You


Latin America’s push towards digital transformation

Keri Allan looks at the latest trends and technologies


Meeting Owl brings new wisdom to conferencing

Martin Veitch's inside track on today’s tech trends


A rare glimpse inside the Chinese cybercrime underground

Phil Muncaster reports on China and beyond

Our Case Studies

IDG Connect delivers full creative solutions to meet all your demand generatlon needs. These cover the full scope of options, from customized content and lead delivery through to fully integrated campaigns.


Our Marketing Research

Our in-house analyst and editorial team create a range of insights for the global marketing community. These look at IT buying preferences, the latest soclal media trends and other zeitgeist topics.



Should the government regulate Artificial Intelligence?