Bytecode Inspection for Performance Improvement