You can do a lot with general coding knowledge, however, I've found the CS fundamentals to be most useful for optimization.