crumblingstatue / hexerator

Versatile GUI hex editor focused on binary file exploration and aiding pattern recognition
https://crumblingstatue.github.io/hexerator-book/
Apache License 2.0
328 stars 6 forks source link

mmap support #18

Open crumblingstatue opened 2 years ago

crumblingstatue commented 2 years ago

My current idea is to have an immutable mmap with "change buffers" that hold the changes, and can grow, etc, as changes are made. Then on save, we temporarily make the mmap mutable and write the change buffers.

crumblingstatue commented 2 years ago

This method will probably not be needed, because memory mapped files support copy on write, where the OS does all the difficult bookkeeping.

crumblingstatue commented 1 month ago

Will probably be called --unsafe-mmap or something like that, due to the inherent unsafety of using memory mapped files