Code format optimization