E-book details

Rust High Performance. Learn to skyrocket the performance of your Rust applications

Rust High Performance. Learn to skyrocket the performance of your Rust applications

Iban Eguia Moraza

Ebook
This book teaches you how to optimize the performance of your Rust code so that it is at the same level as languages such as C/C++. You'll understand and fi x common pitfalls, learn how to improve your productivity by using metaprogramming, and speed up your code. You will master the features of the language, which will make you stand out, and use them to greatly improve the efficiency of your algorithms. The book begins with an introduction to help you identify bottlenecks when programming in Rust. We highlight common performance pitfalls, along with strategies to detect and resolve these issues early. We move on to mastering Rust's type system, which will enable us to optimize both performance and safety at compile time. You will learn how to effectively manage memory in Rust, mastering the borrow checker. We move on to measuring performance and you will see how this affects the way you write code. Moving forward, you will perform metaprogramming in Rust to boost the performance of your code and your productivity. Finally, you will learn parallel programming in Rust, which enables efficient and faster execution by using multithreading and asynchronous programming.
  • 1. Common performance pitfalls
  • 2. Extra performance enhancements
  • 3. Memory management in Rust
  • 4. Lints and Clippy
  • 5. Profiling your Rust application
  • 6. Benchmarking
  • 7. Built-in macros and configuration items
  • 8. Must-have macro crates
  • 9. Creating your own macros
  • 10. Multithreading
  • 11. Asynchronous programming
  • Title: Rust High Performance. Learn to skyrocket the performance of your Rust applications
  • Author: Iban Eguia Moraza
  • Original title: Rust High Performance. Learn to skyrocket the performance of your Rust applications
  • ISBN: 9781788478236, 9781788478236
  • Date of issue: 2018-03-28
  • Format: Ebook
  • Item ID: e_154v
  • Publisher: Packt Publishing