A while ago at $work, we had a performance issue with one of our core Python libraries. We had to make our system at least 50 times faster to handle the increased workload. The key difficulty (performance wise) is this mix of Python objects and numpy arrays. We are going to analyze this in depth in a minute.

15m read timeFrom ohadravid.github.io
Post cover image
Table of contents
Our running exampleWhy not just Rewrite It (all) In Rust™?Dipping our toesMeasure firstMy first Rust modulev1 - A naive Rust translationv2 - Rewrite even more in Rustv3 - Avoid allocationsSummaryTakeaways
4 Comments

Sort: