3 ms·
Too bad that xxd doesn't include the const before the array decl. With const it saves a lot of memory.
by rurban 7y ago
Too bad that xxd doesn't include the const before the array decl. With const it saves a lot of memory.
- saagarjha 7y agoI don't see how const would save memory, unless you have a separate ROM region that keeps that out of the main memory.
- rurban 7y agoVMM. const memory can just be evicted and be swapped back in with zero cost. rw memory must be backed somehow, which us much more expensive. I submitted a patch
- AshamedCaptain 7y agoNot true unless you actively modify it (or the page it was in). "RW" mapped memory that is not dirty is also discarded on memory pressure.