618
Find yourself (lemmy.ml)
submitted 8 months ago by coja@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] demonen@lemmy.ml 3 points 8 months ago

If you're optimizing that hard you should probably sort the data first anyway, but yeah, sometimes it's absolutely called for. Not that I've actually needed that in my professional career, but then again I've never worked close enough to metal for it to actually matter.

That said, all of these are implemented as functions, so they're already costing the function call anyway...

this post was submitted on 22 Oct 2023
618 points (95.7% liked)

Programmer Humor

31216 readers
123 users here now

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

Rules:

founded 4 years ago
MODERATORS