Post #1484999
2026-04-15 16:22 UTC
Replies (4)
-
@guenther@chaos.social 2026-04-15 16:58
@Catfish_Man Implemented everything in Python and now it's slow as fuck? Well, uhm, …
-
@gim@lou.lt 2026-04-15 18:21
@Catfish_Man RAM, RAM bill y'all
-
@AVincentInSpace@furry.engineer 2026-04-15 19:37
@Catfish_Man i don't think i'll ever forget how i felt when i replaced a linear search over a large array with a binary search and performance got worse, and then i left the code the same changed the element i was searching for to be something that was known to be at the very beginning or very end of the array and the search time got cut in half, and i realized big-O complexity didn't correspond to real-world performance even on large datasets
-
@thomas@mastodon.deniau.org 2026-04-16 07:45
@Catfish_Man it’s one of the questions in my standard algorithms interview. « Congrats, you found the O(n)!! But my own solution is n log n and faster, why? »