|
|
|
|
|
by sillysaurus3
4419 days ago
|
|
So are we talking about constant-time optimization, then? I.e. it shaves off a few milliseconds regardless of how complex the search is, or how many files it's reading, or how large each file is. I'll happily concede that mmap() might do that. But a performance boost linear w.r.t. search complexity/number of files/filesize? Hard to believe, and I should go measure it myself to prove the point or learn why I'm mistaken. |
|
I don't think that anybody is claiming that mmapping actually changes the algorithmic complexity of the actual search operations.