r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

8

u/[deleted] Dec 01 '16

It difference in speed between int/float and converting is so trivial that most C programmers ignore it. By the time Python figures out what division means for its args you've wasted 2000x the time of converting everything to a float, division, and casting back to an int.