3 posts since December 2018.
Python uses peephole optimization of your code by either pre-calculating constant expressions or transforming certain data structures.
This kind of optimization is really interesting because it’s something that happens underneath your code. You would normally not even know that all this stuff is happening.
Why is this done?
Not many people have heard of Intering in Python. You might be one them. If so, you are not alone.
Intering is the way Python optimizes the memory used in Python. It does this by sharing the reference to common literals, numeric or string, used by more than one variable.
Let’s dig a bit deeper.
For those who have been programing with Structural or Object Oriented languages functions like Map, Filter, and Reduce might be new to you. They were to me until I started learning more about Functional programming in a Python course that talked about them.
I will explain how they work using the Python’s syntax.
All your info is kept private. We'll never spam you.
Send us your resume and we’ll guide you trough the process of landing your dream job.