There are a number of tools that contain less-than-idiomatic code (like count_elements()). These deviations from best practice need to be justified! Comments containing the alternative, idiomatic code should be inserted alongside a note that records the performance difference between that and the optimized code (something like // Showed a 1.4x increase in performance).
This should help us keep track of what's already been tried down the line when it comes to optimization vs code-style.
There are a number of tools that contain less-than-idiomatic code (like
count_elements()
). These deviations from best practice need to be justified! Comments containing the alternative, idiomatic code should be inserted alongside a note that records the performance difference between that and the optimized code (something like// Showed a 1.4x increase in performance
).This should help us keep track of what's already been tried down the line when it comes to optimization vs code-style.