Accelerating Performance by Incrementally Integrating Rust Into Existing Codebase

QCon San Francisco 2025

Session Performance

Accelerating Performance by Incrementally Integrating Rust Into Existing Codebase

Wednesday Nov 19 / 02:45PM PST, Pacific DEKJ at Hyatt Regency, San Francisco

Abstract

In order to improve the performance of existing applications and services, we can identify the most performance-critical pieces and reimplement them in Rust as opposed to completely rewriting the applications from scratch.

It’s tempting when we hear about a new technology or language to want to rewrite everything using that technology. Start over with a clean slate and fix all the problems of the old system. The new shiny system will surely be better than the last one! The constraints of reality often encroach on this fantasy as rewrite projects. They turn into seemingly never-ending projects due to bugs reemerging - bugs the old system contorted itself into to fix. In pursuit of improving performance, we can rewrite only those pieces of an application that are truly important to performance and use cross-language bindings in order to link existing code bases with code written in Rust.

In this talk, we will take an existing codebase and rewrite part of it in Rust. We will focus on:

  • Determining the feasibility of this type of refactor
  • Write a Rust reimplementation of existing behavior
  • Cross-language regression testing
  • Performance benchmarking of the new code
     

Topics

Performance Emerging Languages Foreign Function Interface
76% senior dev or higher
1:11 speaker ratio
60+ practitioners

QCon San Francisco 2025 is a three day conference for senior software engineers, architects and team leads. An international program committee of working engineers selects every session. Patterns and practices, not products and pitches.

Share

From the same track

Wednesday 19 November

10:35 Pacific DEKJ Session Rust The Rust High Performance Talk You Did Not Expect Ruth Linehan Software Engineer @Momento, Previously APIs/Webhooks @GitHub and @Puppet 11:45 Pacific DEKJ Session Instrumentation at Scale: Having Your Performance Cake and Eating It Too Brian Martin Co-founder and Software Engineer @IOP Systems, Focused on High-Performance Software and Systems, Previously @Twitter 13:35 Pacific DEKJ Session Performance When Every Bit Counts: How Valkey Rebuilt Its Hashtable for Modern Hardware Madelyn Olson Principal Engineer @AWS, Maintainer of the Open-Source Valkey Project 14:45 Pacific DEKJ Session Performance Accelerating Performance by Incrementally Integrating Rust Into Existing Codebase Lily Mara Staff Engineer @Discord, Author of "Refactoring to Rust", Previously Engineering Manager @OneSignal 15:55 Pacific DEKJ Session Python Python, Numba, and Algorithm Design: Building Efficient Models in Financial Services Chad Schuster Principal @Milliman Focusing on Risk Management, Modeling, and Technology Consulting Services