That time I optimized a Python program by 5000x

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Python

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • scalene

    Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python

    I ran the code and copied and pasted the results. Code is here: https://github.com/plasma-umass/scalene/blob/master/test/test-martinheinz.py

  • Keras

    Deep Learning for humans

    The report output for scalene does look much nicer, but the slowness for me dropped me from continuing to use it. Maybe there's some bad interaction with tensorflow/pytest. I can try to make an example, but I'd guess if you try running it on tensorflows actual unit tests (something like this) you'd get similar behavior.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts