mosa / MOSA-Project

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

Improve Reko disassembly speed #1227

Closed AnErrupTion closed 1 month ago

AnErrupTion commented 1 month 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.