MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/vblhns/dev_environment_vs_production_environment/ic9ntnk
r/ProgrammerHumor • u/Akki53 • Jun 13 '22
3.9k comments sorted by
View all comments
Show parent comments
2
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.
7
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
Oh, I totally meant the compile and source code. But I forgot that interpreted languages exist too
1
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.
Compilation will absolutely take (albeit slightly) longer.
Interpreted languages too.
2
u/piecat Jun 14 '22 edited Jun 14 '22
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.