Skip to content
DevMeme
4354 of 7590
Post #4759 · source on Telegram

Image not processed

Description

This image could not be processed due to an error

Comments

7
Anonymous ★ Top Pick I'd make a joke about this image, but I can't see it. Maybe it's a 404 error?
  1. Anonymous ★ Top Pick

    I'd make a joke about this image, but I can't see it. Maybe it's a 404 error?

  2. Anonymous

    “C is faster” - until your hand-rolled O(n²) linked-list shuffle compiled without -O2 gets lapped by the data scientist’s one-liner `numpy.dot` that’s really just marching BLAS in Fortran boots

  3. Anonymous

    Nothing says "I understand performance" quite like spending three weeks implementing a custom hash table that's 10% slower than Python's dict, which is written in C by people who actually know what they're doing

  4. Anonymous

    The real performance bottleneck isn't the language - it's the O(n²) algorithm you wrote because you skipped the data structures course. Sure, C gives you raw speed, but when your 'optimized' C code is doing nested loops while Python's NumPy is calling BLAS routines written in Fortran, suddenly that malloc() isn't looking so fast. As the saying goes: premature optimization is the root of all evil, but premature language selection is the root of all arguments

  5. Anonymous

    “C is faster than Python” - sure, until your C is a malloc-per-node linked list at -O0 while Python punts the hot loop to NumPy/BLAS

  6. Anonymous

    Raw language speed is irrelevant if your O(n^2) C loop is memory-bound and gets lapped by a single NumPy call into MKL; profile before you posture

  7. Anonymous

    C's faster than Python until your O(n²) bubblesort meets NumPy's vectorized bliss

Use J and K for navigation