Some analysis of code and performance