Re:Adventures with mmap and Go
by kristianp on Monday July 11, 2016 @10:35PM
(#12076364)
Google code search used mmap and go back in the day:
Regular Expression Matching with a Trigram Index
or
How Google Code Search Worked
https://swtch.com/~rsc/regexp/regexp4.html
Re:Adventures with mmap and Go
by jimsmart on Tuesday July 12, 2016 @11:04AM
(#12079618)
Maybe also ask your specific questions over on Go-nuts [0] - Lots of knowledgable Go folk there (including a bunch of the Go devs), and most questions get answered pretty quickly. HTH
https://github.com/google/codesearch/tree/master/index
I used mmap in a go project that had large (GByte) hash tables. Sidesteps any GC pauses and makes for very fast file loading.
[0] https://groups.google.com/forum/#!forum/golang-nuts