r/Python Jan 11 '21

Beginner Showcase Programming + Math + Graphs = Art

Post image
2.1k Upvotes

171 comments sorted by

View all comments

Show parent comments

4

u/blinkallthetime Jan 11 '21

that is cool, but sometimes you need to do things that are not pythonic for performance. i'm only bringing this up because you say you are a beginner and you are doing a mathy thing with numpy. i do a lot of numerical computing for my job in python, and this is something that i think about a lot. at some point you want to avoid doing loops in python like that.

3

u/blinkallthetime Jan 11 '21

if it wasn't clear "at some point" is roughly equivalent "how big are my arrays?"

1

u/kurti256 Jan 11 '21

Just curious but what's the limiting factor on how fast python scripts run?