You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially in languages that are supposed to be very performant, many developers tend to feel the need to write performant code. Code gets written in a specific way "because it's faster", usually coming with a number of problems:
Readability is sacrificed to the performance god and clean code principles are willfully or ignorantly violated. (reference to Article: Clean and cleaner code #59 )
It is not proven by a profiler that the code, written that way, is actually more performant. Instead, it is "known" from war stories and lore from the past that this is The Way Things Have to be Done ™️ (Reference to Article: Rules are Dangerous #31 )
It is not proven by a profiler that performance is actually needed at that point in the code.
While focusing on the low-level optimizations one may oversee that the overarching algorithm is not as effective as it could be.
Optimizers are actually prevented from doing their work because the code does not demonstrate well-known patterns that are recognized by the optimizer.
Bottom line:
Write clean and maintainable code first
Check your algorithms for efficiency
Use benchmarking and profiling to show that and where optimizations are needed
Only as a last resort apply manual optimizations, guided and verified by the profiler
The text was updated successfully, but these errors were encountered:
Especially in languages that are supposed to be very performant, many developers tend to feel the need to write performant code. Code gets written in a specific way "because it's faster", usually coming with a number of problems:
Bottom line:
The text was updated successfully, but these errors were encountered: