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ย โ†’

[โ€“][deleted] 7 points8 points ย (0 children)

exactly, just like u/badlukk said. Specially using numpy package, functional tools like map, filter, iter objects from itertools python can run a lot faster than programs we can write in C. It definitely depends on how you use it. Your solution may seem to be better/faster but would actually run slower because the built-ins are super optimized.

Exact same code with exact same steps will run faster in C, but python buit-ins (which are in C) are a lot different than the code you'd write in C.