asm: improve performance