▲ 911 ▼ I wish (i.imgur.com) submitted 2 years ago by nave@lemmy.zip to c/lemmyshitpost@lemmy.world 187 comments fedilink hide all child comments
[–] mellejwz@lemmy.world 1 point 2 years ago (1 child) That could also be the case. permalink fedilink source parent hideshow 2 child comments replies: [–] dukk@programming.dev 2 points 2 years ago That’s the main issue with premature optimization: do it the “optimized” way and it may still be inefficient, or do it the obvious way and let the compiler turn it into its most optimized form. (Of course, not the case with all languages, but most mainstream compilers optimize the code to a decent extent.) permalink fedilink source parent
[–] dukk@programming.dev 2 points 2 years ago That’s the main issue with premature optimization: do it the “optimized” way and it may still be inefficient, or do it the obvious way and let the compiler turn it into its most optimized form. (Of course, not the case with all languages, but most mainstream compilers optimize the code to a decent extent.) permalink fedilink source parent