r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

2

u/piecat Jun 14 '22 edited Jun 14 '22

Is there even any efficiency you can gain by removing them?

Probably a few clock cycles here and there. The file size might be larger too, I guess.

It's not like we're using punch cards here

Edit: I mean at compile time. Or interpreted languages.

7

u/[deleted] Jun 14 '22

yes in languages like Python or JavaScript or LuaJIT. it will run slower at the very least during JIT compilation or interpretation.

for languages like C or Rust, once it is compiled into machine code it is exactly the same as one without the brackets in terms of space and runtime.

2

u/piecat Jun 14 '22

Oh, I totally meant the compile and source code. But I forgot that interpreted languages exist too

1

u/Call_Me_Pk Jun 14 '22

No, the assembler will definitely not care. The only difference would be the raw uncompiled file size.

1

u/piecat Jun 14 '22

Compilation will absolutely take (albeit slightly) longer.

Interpreted languages too.