Well, of course, you can always use a real registry, which is thread safe and fast ...
Otherwise, you will have to create a separate process that manages your virtual XML registry, keeping the XML structure in memory, so it does not need to read / write constantly. Then, the processes that should be able to access it can use IPC to communicate with the registration process.
Another idea: if several processes are unlikely to constantly update the registry: keep the virtual XML registry in memory and write it to disk when changing, but asynchronously through the background thread. When accessing the registry, first check if the file has been modified; if not, you do not need to restart it.
source share