Skip to content

Feasibility

How hard is it to write fast enough Rust code?

  • Advent of Code Anecdote (Dumb algorithm worked)
  • Rewrite Anecdote (Kotlin four times slower)
  • Clippy will help
  • Use references where possible
  • Stay clear from tricks to achieve perfect code
  • Use compile time flags before runtime injection
  • Put performance testing also into the deployed binary
  • Fearless mutation (mut)
  • Fearless parallelism (Rayon)