Geek Culture
Published in

Geek Culture

8 small changes to optimise your Python code

Low-level coding changes that can speed up execution

Photo by Chris Liverani on Unsplash

This article looks at low-level code optimisation techniques. These techniques often involve changing individual lines of code to do the same thing in a slightly different way, with the aim of making the code run faster.

Used with care, these techniques can speed up key sections of code that are current…

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

Customized Resources Auto-Tagging in AWS

I Beta Tested OpenAI’s Codex, and the Results Are Spooky Good

OpenAI CodeX Beta playground

Learning Redis

Lapis Bot’s Upcoming Development

Setting up Docker on a Mac

Development Complexity & Price

In the last month I participated in the 2nd OGA game jam.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Martin McBride

Martin McBride

Software developer. Java, Python, C++ etc. I write for pythoninformer.com and maintain the generativepy library.

More from Medium

11 Pythonic Ways to Optimise your Code

10 Must-Know Patterns for Writing Clean Code with Python🐍

Modularizing Code (the Python Way)

A Guide to Loose Coupling and Writing Better Python Code With Dependency Inversion