// unroll loop for 50% speed increase. Optimal offset 4
// 3: 25%
// 4: 50%
// 5: 40%
for(i=0;i<x;i+=4) {
...
}
How could you extract that into a function name?2 is definitely more an opinion, but I use XML comments on every function, object, parameter, return value with a quick summery because it integrates into my IDE and is used to generate API and library documentation that is invaluable to developers who don't necessary have the code, only the documentation.