mosa / MOSA-Project

Managed Operating System Alliance Project
https://www.mosa-project.org/
Other
416 stars 80 forks source link

Improve Reko disassembly speed #1227

Closed AnErrupTion closed 6 months ago

AnErrupTion commented 6 months ago

This PR drastically improves the disassembly speed when using Reko (a.k.a. the -output-asm CLI argument). The main problem was that the MOSA Disassembler class would:

This is indeed much slower, so this PR fixes it by simply having a DecodeNext() method in the Disassembler class, which makes it act like an enumerator.