3 ms·
> Pretty pointless as said page fault would occur no matter how you access the string. When did I dispute this? > Besides, the page in question would very lik
by asveikau 7y ago
> Pretty pointless as said page fault would occur no matter how you access the string.
When did I dispute this?
> Besides, the page in question would very likely be already present.
Really? How are you so sure? I guess you can just abandon all notion of virtual memory and mmap then. 'Cause it ain't gonna happen.
- vardump 7y ago>> Besides, the page in question would very likely be already present. > Really? How are you so sure? It was in a BASIC interpreter. Most of the time string needle in a haystack search is done, haystack is relatively fresh, almost certainly on a page that is present. Might not be in CPU dcache, but that's another matter.