Rust 1.2 穩定版發布,Mozilla 編程語言

jopen 9年前發布 | 5K 次閱讀 Rust
 

Rust 1.2 穩定版發布了,該版本對編譯器進行改進,包含兩方面主要的性能提升:

  • An across-the-board improvementto real-world compiler performance. Representative crates include hyper (compiles 1.16x faster), html5ever (1.62x faster), regex (1.32x faster) and rust-encoding (1.35x faster). You can explore some of this performance data at Nick Cameron’s preliminary tracking site , using dates 2015-05-15 to 2015-06-25.

  • Parallel codegenis now working , and produces a 33% speedup when bootstrapping on a 4 core machine. Parallel codegen is particularly useful for debug builds, since it prevents some optimizations; but it can also be used with optimizations as an effective-O1flag. It can be activated by passing-C codegen-units=Ntorustc, whereNis the desired number of threads.

Cargo 的性能也得到提升:

  • Builds that do not require any recompilation (“no-op builds”) for large projects are much faster: for Servo, build time went from 5 seconds to 0.5 seconds.

  • Cargo now supports shared target directories that cache dependencies across multiple packages, which results in significant build-time reduction for complex projects.

同時 Rust 1.2 支持 MSVC (Microsoft Visual C) 工具鏈。在語言方面 Rust 1.2 完成了 dynamically-sized type (DST) 工作。詳細介紹請看 發行說明

Rust 是 Mozilla 的一個新的編程語言,由web語言的領軍人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力開發。

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!