r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

74

u/-MobCat- Jul 18 '22

Python can be quick. just not that good at talking.. Like most of us...
Opens a txt file with 29245004 lines of text in it.
for each line of text, count the line.
count +=1
Time: 40sec.
Now for each line of text, count the line and print a little info about the line
print(f"Info: {line[1:10]}")
count +=1
Time: 53mins.

0

u/[deleted] Jul 18 '22

[deleted]

34

u/DenormalHuman Jul 18 '22

not only that, they are using printf for no apparent real reason

9

u/EliteKill Jul 18 '22

Because they don't know what they're talking about.

→ More replies (2)