Can python be faster than numpy? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
20th Feb 2021, 1:25 AM
3320
3320 - avatar
2 Respuestas
+ 3
As the array size increase, Numpy gets around 30 times faster than Python List. Because the Numpy array is densely packed in memory due to its homogeneous type, it also frees the memory faster.
20th Feb 2021, 2:23 AM
Abhiyantā
Abhiyantā - avatar
0
Float nums in first list made it faster, but numpy became faster too
25th Feb 2021, 3:31 AM
3320
3320 - avatar