map() vs. List Comprehension
Is the map() function faster than a corresponding list comprehension? That depends! Let's see how using lambda functions can affect the performance of map().
Python freelancer, consultant, and speaker.
Is the map() function faster than a corresponding list comprehension? That depends! Let's see how using lambda functions can affect the performance of map().
Running one big blob of code is often faster than splitting your code into well-separated functions. But there are other ways you can improve the speed of your code without sacrificing its readability.
pathlib is an interesting, object-oriented take on the filesystem paths. With plenty of functions to create, delete, move, rename, read, write, find, or split files, pathlib is an excellent replacement for the os module. But is it faster?
In case you haven't read them, here are my most popular posts:
I spoke at 20+ Python conferences around the world.
Get in touch if you would like me to present at yours.
Here are some of my favorite talks.
Take your Continuous Integration to the next level! Learn how to optimize your pipelines for faster and more efficient builds by making things start faster (caching, smaller containers), finish faster (failing early, splitting tests), and making more things run at the same time (parallelization).
Streamline your Python development process with Continuous Integration. From choosing the right CI tool to implementing it in your project, this presentation will cover all the basics and best practices of CI, leaving you with a working setup that you can reuse in the future.
A talk about source code optimization. How some common problems can be solved with different code structures, together with benchmarks and explanations why one way is usually better (and often faster) than the other.
This is a revised version of my very first talk that I created in 2016 - adjusted for Python 3 with new code examples.
This is a tutorial for PyCon 2020 that I wish someone gave to me when I first learned Python.
Python is (relatively) easy and fun to learn, but there is a gap between "knowing how to write Python code" and "knowing the tools and good practices when writing Python code". This tutorial will try to bridge this gap. It's intended for beginners who know Python, but who are not sure how to write a Python project from scratch.