Vlad Ardelean’s Reviews > High Performance Python: Practical Performant Programming for Humans > Status Update
Vlad Ardelean
is 50% done
The chapter on JIT/AOT compilers is awesome! Did not know how many JIT/AOT compilere there are (rather were in 2014/2015)
Didn't know how easy one can compile python to C with cython. Also found more details about numpy's contiguous arrays and how they affect performance. cffi is also pretty cool. I need more details about inlining c functions in python, there was something I didn't get there.
— Jan 17, 2019 08:58AM
Didn't know how easy one can compile python to C with cython. Also found more details about numpy's contiguous arrays and how they affect performance. cffi is also pretty cool. I need more details about inlining c functions in python, there was something I didn't get there.
Like flag
Vlad’s Previous Updates
Vlad Ardelean
is 28% done
$ pip install memory_profiler
$ ipython
>>> %load_ext memory_profiler
>>> %memit [0] * 10 ** 8
# will tell you how much memory was used up on that line (700+ MB!)
Also guppy.heapy analizes heap allocation per object type!
The chapter on memory profiling is amazing!
More details on dicts: they use a "perturbation index" on collisions (python determines new indices for the given key - open addressing)
— Jan 11, 2019 12:37AM
$ ipython
>>> %load_ext memory_profiler
>>> %memit [0] * 10 ** 8
# will tell you how much memory was used up on that line (700+ MB!)
Also guppy.heapy analizes heap allocation per object type!
The chapter on memory profiling is amazing!
More details on dicts: they use a "perturbation index" on collisions (python determines new indices for the given key - open addressing)
Vlad Ardelean
is 10% done
$ pip install memory_profiler
$ ipython
In[1]: %load_ext memory_profiler
In[2]: %memit [0] * 10 ** 8
!awesome little tool!
Also, the timeit module disables the garbage collector when running! Very interesting.
— Jan 06, 2019 04:56AM
$ ipython
In[1]: %load_ext memory_profiler
In[2]: %memit [0] * 10 ** 8
!awesome little tool!
Also, the timeit module disables the garbage collector when running! Very interesting.

