Open dhagrow opened 7 years ago
hey @dhagrow
this is a good solution. if i were to re-write this library, i'd probably have the registry constructor accept a buffer object, and leave it up to the caller to (1) read from the file, (2) create a mmap, (3) do something i haven't even thought of.
there are a couple other warts that i'd want to address in a major version bump, so i'll include this in the list.
thanks for sharing this tip!
hey, any news on this? It would be a great feature indeed
Some registry hives can be as large as 2GB. Maybe not a big issue for most people, but also not difficult to fix. I went with the following solution using
mmap
for myself. It substantially reduces the time to read from a large hive and uses almost no memory.Used like this: