Any suggestions/resources on learning how to implement these kinds of optimizations?