413
advanced (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Asudox@lemmy.world 4 points 9 months ago* (last edited 9 months ago)

I don't see the need for an if block or renaming the function and leaving it there. It is extra unnecessary work for the compiler. Comments are probably the best way. Might also copy the current file, put the original in some folder like "old", and delete the old code inside the new copy.

[-] frobeniusnorm@lemmy.world 3 points 9 months ago

On a modern computer dead code analysis with constant folding should be nearly unnoticeable when compiling a large project

load more comments (2 replies)
this post was submitted on 21 Nov 2023
413 points (96.6% liked)

Programmer Humor

31749 readers
142 users here now

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

Rules:

founded 5 years ago
MODERATORS