Developer Michal Schulz continues to detail the new features of Emu68 v1.1 , focusing this time on cache management and a new mechanism called Dumpster , designed to significantly improve performance in scenarios where frequent cache cleanups penalized speed.
In previous versions, every time AmigaOS was running a LoadSeg —a routine action at each system startup or when loading new programs—, the instruction cache was emptied and Emu68 was forced to recompile the JIT blocks from scratch. Although this impact was manageable under normal use, the problem was exacerbated when emulating MacOS using Shape Shifter o FusionThis operating system forces dozens of cleanups per second. The result: widespread slowness and an experience inferior even to that of classic 68040 or 68060 accelerators.
Schulz observed that, in most cases, memory remains unchanged after a cache flush. This led to the idea of not discarding compiled blocks, but instead temporarily storing them in a dumpster along with a CRC32 checksum of the associated memory area. If the content remains unaltered, the block can be reused without recompilation, being retrieved in mere microseconds.
The first approach used a second hash table, but this resulted in reduced cache size and increased collisions, which decreased speed in other contexts. Finally, the definitive solution came with the introduction of the Epoch concept : a global counter that marks the temporal validity of JIT blocks.
- When the cache is emptied, simply increment the Epoch value.
- Each JIT block retains an associated Epoch number.
- If your checksum is valid and the Epoch matches the current one, it can be reused immediately.
- The combined use of the hash table and the LRU cache ensures faster and more efficient searches.
This system avoids unnecessary data movements, keeps the hash table at its full size, and drastically reduces performance loss in critical situations such as MacOS emulation.
With these improvements, AmigaOS and MacOS boot significantly faster And the use of the JIT cache is much more efficient. Furthermore, the new approach frees up an extra Raspberry Pi core for future projects, such as the potential emulation of PowerPC within the same environment.
Although the Dumpster is still being refined, initial tests show no adverse effects and confirm a significant improvement in the user experience with Emu68. In fact, macOS 7.5 can now boot in just a few seconds, a feat unthinkable in previous versions.

Incredible, that's fast! Let's hope they release the downloadable version soon so we can try it on our PiStorms. I imagine it will also speed up applications like the internet browser, which requires a lot of resources to run, or photo editing applications and 3D games.