Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream the disc image instead of loading the entire file #8

Open
geraldholdsworth opened this issue Dec 9, 2020 · 1 comment
Open

Comments

@geraldholdsworth
Copy link
Owner

Currently Disc Image Manager loads the entire disc image into memory then works on it from there. This is fine for speed, and for floppy images and most RISC OS and AmigaDOS hard disc images. But for bigger images - RISC OS 4.39 could access a 40GB drive, while the latest, 5.28, can access much bigger drives, particularly on a Raspberry Pi. This leaves this application open for a crash should it be presented with a file much bigger than memory allows.

The other advantage to streaming the disc image is that the application can access what it needs, much like a floppy or hard drive head in a physical machine.

@stuaxo
Copy link

stuaxo commented Nov 14, 2023

Memory mapping the image file is an option that might be worth considering too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants