3 ms·
> ...I found it to be quite memory inefficient: data structures take up a lot of space... Just for whatever it's worth, this is the whole point of numpy. List
by jofer 13y ago
> ...I found it to be quite memory inefficient: data structures take up a lot of space...
Just for whatever it's worth, this is the whole point of numpy. Lists, dicts, etc are not memory-efficient, but numpy arrays are.
The main reason I switched from Matlab to Python is due to Matlab's excessive memory usage (Essentially every operation makes a copy). Using numpy, you have a lot more control over memory usage than you do with Matlab.