TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Adventures with mmap and Go

20 pointsby dcualmost 9 years ago

2 comments

kristianpalmost 9 years ago
Google code search used mmap and go back in the day: Regular Expression Matching with a Trigram Index or How Google Code Search Worked <a href="https:&#x2F;&#x2F;swtch.com&#x2F;~rsc&#x2F;regexp&#x2F;regexp4.html" rel="nofollow">https:&#x2F;&#x2F;swtch.com&#x2F;~rsc&#x2F;regexp&#x2F;regexp4.html</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch&#x2F;tree&#x2F;master&#x2F;index" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch&#x2F;tree&#x2F;master&#x2F;index</a><p>I used mmap in a go project that had large (GByte) hash tables. Sidesteps any GC pauses and makes for very fast file loading.
评论 #12100412 未加载
jimsmartalmost 9 years ago
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<p>[0] <a href="https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!forum&#x2F;golang-nuts" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!forum&#x2F;golang-nuts</a>
评论 #12100413 未加载