3 ms·
If you have a pointer to an immutable data structure, you know it won't change, so you can write it out to disk at your leisure.
by Ono-Sendai 12y ago
If you have a pointer to an immutable data structure, you know it won't change, so you can write it out to disk at your leisure.
- justincormack 12y agoBut the immutable data structure is not that much different from the copy-on-write pages the kernel gives you, likely to involve the same amount of copying. And disk IO is blocking so you need at least a thread, so it is a natural strategy.