• 0 Posts
  • 9 Comments
Joined 4 months ago
cake
Cake day: July 2nd, 2025

help-circle






  • Weird. My wget gives full resolution. No redirect options or anything. Only difference is the IP resolve for you is in Korea and mine is in the US. Likely just closest server resolve.

    Try curl with -L set?

    Or I’d be curious if something like gallery-dl resolves the image in finding the higher resolution and what the difference is if it does.

    Maybe it’s a DNS issue if not a redirect issue.

    My guess is DNS. Try with another provider?



  • wheezy@lemmy.mltoProgrammer Humor@lemmy.mlPython!
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 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.