YOUR BEST FRIEND AND WORST ENEMY: GIL-Global Interpreter Lock
11
THREADS AND CPU BOUND TASKS
12
A DUMB SPEED COMPARISON Calculating the mean of 1000000 randomly generated numbers.
13
CLASSES TO STRUCTURE CODE
14
STRUCT OF ARRAYS VS ARRAY OF STRUCTS
15
NUMPY: ndarray
16
"HIDDEN" ALLOCATIONS
17
AVOIDING UNNEEDED ALLOCATIONS
18
MEMORY AND PERFORMANCE PROBLEMS
19
MASKING/SLICING IS THE ROOT OF ALL EVIL
20
NUMEXPR USAGE EXAMPLE
21
NUMEXPR SPEED-UP
22
NUMEXPR-SUPPORTED OPERATORS
23
NUMEXPR - SUPPORTED FUNCTIONS
24
AWKARD ARRAY
25
NUMBA JIT-EXAMPLE
26
CHOOSE YOUR TOOLS WITH CARE
27
PERSONAL REMARK
28
A FINAL WORD ON GREEN CODING/COMPUTING
Description:
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Grab it
Discover the intricacies of Python for scientific computing in this 43-minute talk by Tamás Gál at the NHR@FAU HPC Cafe. Explore Python's internals, understand its popularity among scientists, and learn why libraries like NumPy, Pandas, and Numba are crucial for efficient scientific coding. Gain insights into writing scalable code, optimizing performance, and addressing common issues when dealing with large datasets. Delve into topics such as CPython, bytecode, memory management, the Global Interpreter Lock, and performance comparisons. Learn about structuring code with classes, leveraging NumPy's ndarray, and utilizing tools like Numexpr and Numba JIT for improved efficiency. Acquire the knowledge to choose the right tools and languages for scientific computing tasks, and consider the importance of green coding practices.
The Missing Python Introduction for Scientists - Performance and Efficiency