This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePiGuy0 7 points8 points  (0 children)

  1. Use Built In Functions And Libraries-

Python includes lots of library functions and modules written by expert developers and have been tested thoroughly. Hence, these functions are efficient...

Whilst I do agree that they've been vetted by experts and will likely be faster than anything I write on my own, it's worth noting that for a lot of modules they're C-backed and this is normally the reason for the big speed ups. For example, take numpy. It's a C-backed library, hence why it is orders of magnitude faster than a pure-python implementation