<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o" -->

---
title: Making Python 100x faster with less than 100 lines of Rust
description: 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...
canonical: https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Making Python 100x faster with less than 100 lines of Rust | daily.dev
og:description: 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...
og:url: https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o
og:image: https://api.daily.dev/og/posts/2ZKf93A0o.png
og:image:alt: Making Python 100x faster with less than 100 lines of Rust
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Making Python 100x faster with less than 100 lines of Rust

**[Pointer](https://daily.dev/sources/pointer)** · 15 min read · 42 upvotes · 4 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ohadravid.github.io/posts/2023-03-rusty-python/>

## Community discussion

Top comments from developers on daily.dev.

**@davinki** · 1 upvotes

> This is one of those examples where Python is used when it shouldn't be used

**@nguyenmphu** · 0 upvotes

> Interesting topic

**@dtcne** · 0 upvotes

> Loved the article, gave me great new insights

**@kyoukhana** · 0 upvotes

> I really want to learn Rust.  But until companies like @vercel support it out  of the box I don't want to be stuck into configuration

---

Tags: [#python](https://daily.dev/tags/python), [#rust](https://daily.dev/tags/rust), [#numpy](https://daily.dev/tags/numpy)

[View this post on daily.dev](https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Making Python 100x faster with less than 100 lines of Rust","url":"https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o"},"datePublished":"2023-06-28T08:50:31.686Z","dateModified":"2023-06-28T08:49:50.467Z","description":"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...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c327209ae691392d23fe12eed9868f5c?_a=AQADKdt","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c327209ae691392d23fe12eed9868f5c?_a=AQADKdt","isAccessibleForFree":true,"articleSection":"Pointer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Pointer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/65d4168582f14e0cb2b46693356e66f1","url":"https://daily.dev/sources/pointer"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":42},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"python,rust,numpy","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Pointer","item":"https://daily.dev/sources/pointer"},{"@type":"ListItem","position":3,"name":"Making Python 100x faster with less than 100 lines of Rust"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/making-python-100x-faster-with-less-than-100-lines-of-rust-2zkf93a0o","comment":[{"@type":"Comment","text":"This is one of those examples where Python is used when it shouldn’t be used","datePublished":"2023-07-04T03:23:59.921Z","url":"https://daily.dev/posts/2ZKf93A0o#c-5xzD0wrb8","author":{"@type":"Person","name":"Name","url":"https://daily.dev/davinki","image":"https://avatars.githubusercontent.com/u/50428844?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Interesting topic","datePublished":"2023-06-29T06:08:42.312Z","url":"https://daily.dev/posts/2ZKf93A0o#c-szrmBdkZu","author":{"@type":"Person","name":"Nguyễn Minh Phú","url":"https://daily.dev/nguyenmphu","image":"https://avatars.githubusercontent.com/u/21312208?v=4"}},{"@type":"Comment","text":"Loved the article, gave me great new insights","datePublished":"2023-06-29T06:48:03.770Z","url":"https://daily.dev/posts/2ZKf93A0o#c-vzCPz2vNS","author":{"@type":"Person","name":"nick Evers","url":"https://daily.dev/dtcne","image":"https://lh3.googleusercontent.com/a/AGNmyxbcrrnVKEDDIvIsvBqTUcfEXMxtj9Oo9GAvncou=s96-c"}},{"@type":"Comment","text":"I really want to learn Rust.  But until companies like @vercel support it out  of the box I don’t want to be stuck into configuration","datePublished":"2023-06-29T15:18:35.624Z","url":"https://daily.dev/posts/2ZKf93A0o#c-KIeJM6HfQ","author":{"@type":"Person","name":"Kevin","url":"https://daily.dev/kyoukhana","image":"https://avatars2.githubusercontent.com/u/756849?v=4"}}]}
```

