jlai.lu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ryan He@lemmy.pastwind.topM to Python Dev@lemmy.pastwind.top · 3 years ago

Not-so-casual Performance Optimization in Python

www.nathom.dev

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • python@programming.dev
1
external-link

Not-so-casual Performance Optimization in Python

www.nathom.dev

Ryan He@lemmy.pastwind.topM to Python Dev@lemmy.pastwind.top · 3 years ago
message-square
0
link
fedilink
  • cross-posted to:
  • python@programming.dev
My previous post (which was honestly created to test out the theme for this site), provided a few code snippets that computed $N$ terms of the sum of inverse squares. I wrote the code in my 4 favorite languages—Python, C, Rust, and Haskell—but when I ran the Python code, it was embarrassingly slow. Compared to the $\approx 950$ ms it took sequential Rust, Python took 70 seconds! So, in this post, we’re going to attempt to get Python some more reasonable numbers.
alert-triangle
You must log in or # to comment.

Python Dev@lemmy.pastwind.top

python_dev@lemmy.pastwind.top

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !python_dev@lemmy.pastwind.top
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 5 users / 6 months
  • 3 local subscribers
  • 3 subscribers
  • 41 Posts
  • 3 Comments
  • Modlog
  • mods:
  • Ryan He@lemmy.pastwind.top
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org