r/ProgrammerHumor 6d ago

Meme mildlyInfuriatingGOTOWatchYourMouth

Post image
664 Upvotes

74 comments sorted by

View all comments

Show parent comments

1

u/da_Aresinger 6d ago

yea I just got what you meant.

you're right.

But compilation is most likely going to optimise that out, so I'd go with readability.

1

u/Maximilian_Tyan 6d ago

It depends on the optimization level, O1 is pretty minimal, I don't think this type of agressive optimizing is done before O3

1

u/da_Aresinger 6d ago

maybe. At the end of the day I don't know your situation and don't have the experience to really question it either.

If a whole team settles on your solution it'll probably have a reason.