You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With mmap, the memory is not resident until accessed, so just naively using regexec like we do now, matches that occur earlier would use less memory. But if you're at the beginning of the file and the match is near the end of the file, it could still load everything into memory. madvise(MADV_SEQUENTIAL) doesn't seem to have an affect on this (tested on macOS, the resident set size was the same).
i.e. don't read the whole file into memory.
The text was updated successfully, but these errors were encountered: