- 1 Post
- 9 Comments
You can be mad about the murder once we start sending them to prison
javasux@lemmy.worldto vegan@lemmy.world•Bill Gates-backed startup makes ‘butter’ out of water and carbon dioxideEnglish7·1 year agoNobody said this was healthy
javasux@lemmy.worldto Linux@programming.dev•Linux 6.11 To Offer More Fine-Tuned Control Over SwappinessEnglish3·1 year agodeleted by creator
javasux@lemmy.worldto Nintendo@lemmy.world•Batman: Arkham Trilogy delayed to December 1, 2023English61·2 years agoA delayed game is always better than a rushed game, thank you WB Games for letting the developers deliver something they’re happy with
javasux@lemmy.worldto Godot@programming.dev•Question about gdscript: Which is more efficient?English43·2 years agostop dismissing performance questions
I did not dismiss it, I said measure the performance yourself.
Performance matters, learning about performance matters
Which is why I said you should measure performance. It’s no use waffling about unmeasurable performance gains.
Did they ask if they should optimize, or did they ask which one generates more performant assembly?
To be pedantic, GDScript is an interpreted language, and does not generate bytecode or assembly. This means that the code performance is highly dependent on runtime conditions, and needs to be measured in the place where it’s used.
Maybe they already measured and already knows this is a bottleneck.
If they already measured, then they would know which one is faster, because they measured it.
I swear half the reason every piece of modern software runs like shit is because nobody bothered to learn how to optimize
This is unrelated to what I said, which is “you should measure your performance to see what you need to optimize”.
There’s tons of little “premature” optimizations that you can do that aren’t evil.
And all of these optimizations are just as effective after you measure them to see if they’re needed, and they’re no longer premature.
Estimating time complexity and load size
Accurately estimating the performance impact of a design choice means the optimization is no longer premature. The rule-of-thumb is about using optimizations without taking appropriate time to their overall performance benefit. The particular question asked by the OP is very very unlikely to have any significant performance impact at all, unless it’s in an extremely hot loop running millions of times per frame, at which point you should measure it to see which one is faster in your use case.
javasux@lemmy.worldto Godot@programming.dev•Question about gdscript: Which is more efficient?English198·2 years agoRule #1 of programming: Write good code first, then measure performance.
javasux@lemmy.worldto Mildly Infuriating@lemmy.world•My mum had her finger on the lens for all summit photos she took of me.English16·2 years agothose are the ones of her
https://www.sciencealert.com/you-can-t-see-it-but-humans-actually-glow-in-visible-light