719
Python! (lemmy.ml)
submitted 2 months ago by tfm@europe.pub to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] wheezy@lemmy.ml 98 points 2 months ago* (last edited 2 months ago)

I know people joke around about this a lot. But I was blown away by a recent switch to I did from using cv2 with python to using cv2 with C++.

I had literally hundreds of thousands of images to analyze for a dataset. My python script would have taken 12 hours.

I ported it to C++ and it literally destroyed it in 20 minutes.

I'm sure I was doing something that really wasn't optimized well for python. I know somewhere in the backend it probably was using a completely different library with multi thread optimization. Or maybe turbojpg is just garbage in python. I'm still not even sure what the bottleneck was. I don't know enough to really explain why.

But holy shit. I never had that much of a performance difference in such a simple task.

Was very impressed.

[-] sugarfoot00@lemmy.ca 24 points 2 months ago

But make sure to bill for the full 12 hours.

[-] wheezy@lemmy.ml 16 points 2 months ago* (last edited 2 months ago)

Was a personal project. But absolutely. Half my job is trying to explain why something is taking so long when in reality I actually it's already done I just don't want to do nothing for the next few days.

Managers never really know. And other engineers don't care. It's all about balancing expectations.

load more comments (7 replies)
this post was submitted on 07 Aug 2025
719 points (97.9% liked)

Programmer Humor

38710 readers
213 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS