u/DJMoleHill

a Python list isn't a list. it's an array of pointers. calling it a "list" is the most misleading name in programming. it's not cache-friendly and also it's not compact. it's an array of addresses scattered across RAM. numpy fixes this by doing what C does: storing the actual values contiguously.

a Python list isn't a list. it's an array of pointers. calling it a "list" is the most misleading name in programming.

it's not cache-friendly and also it's not compact. it's an array of addresses scattered across RAM. numpy fixes this by doing what C does: storing the actual values contiguously.

reddit.com
u/DJMoleHill — 2 days ago