high_performance_python
high_performance_python copied to clipboard
Code for the book "High Performance Python" by Micha Gorelick and Ian Ozsvald with OReilly
The book states: "The maximum we could approximately count where we use a single unsigned byte for the exponent is math.pow(2,255) == 5e76". The actual value is 5.79 x 10^76,...
There are small typos in: - 10_clusters/primes/README.md - 11_less_ram/getsizeof/asizeof.py Fixes: - Should read `arguments` rather than `argments`. - Should read `stepping` rather than `steping`. - Should read `determines` rather than...
In the following sentence: While we saw in the previous chapter that we are restricted to, at best, O(log n) lookup time on lists/tuples with no intrinsic order (through a...
1st, what are the elements of a computer architecture? * memory * computation unit * connections 2nd, what are some common alternate computer architectures? (GPU)??? 3rd, how does python abstract...
Hi, The provided solution for ["noop-profile" decorator](https://github.com/mynameisfiber/high_performance_python/blob/master/01_profiling/noop_profile_decorator/ex.py) does not work for Robert Kern's kernprof tool: it fails silently in reaching desired objective, as it prevents exceptions, but also prevent _line_profiler_...
Using **name** is the preferred method as it applies uniformly. Unlike func_name, it works on built-in functions as well. Also the double underscores indicate to the reader this is a...