Faster Python calculations with Numba: 2 lines of code, 13× speed-up

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nodevectors

    Fastest network node embeddings in the west

    Numba fits very few usecases, but where it does fit it's awesome.

    I've been using it in a python graph library to write graph traversal routines and it's done me very well:

    The best part is the native openMP support on for loops IMO. Makes parallelism in data work very efficient compared to python alternatives that use processes (instead of threads)

  • ndarray_comparison

    Benchmark of toy calculation on an n-dimensional array using python, numba, cython, pythran and rust

    I use numba quite a bit at work and it's fantastic. I recently, however, did a comparison between numba, cython, pythran and rust (ndarray) for a toy problem, and it yielded some interesting results:

    Most surprising among them was how fast pythran was with little more effort than is required of numba (still required an aot compilation step with a, but minimal changes in the code). All of the usual caveats should be applied to a simple benchmark like this.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Numba

    NumPy aware dynamic Python compiler using LLVM

    For the reference - here it is the repo

  • fbpic

    Spectral, quasi-3D Particle-In-Cell code, for CPU and GPU

    We used numba to accelerate the code and most importantly write GPU kernels for the heavy parts. I remember spending hours optimising my code to eek out the most performance possible (which eventually meant using atomics and manually unrolling many loops because somehow this was giving us the best performance) but honestly I was really happy that I didn't need to write cuda kernels in C and generally it was pretty easy to work with. I remember back then the documentation was sometimes a little rough around the edges but the numba team was incredibly helpful and responsive. Overall I had a great time.


  • PyCall.jl

    Package to call Python functions from the Julia language

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

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