aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-12-10 14:40:22 -0800
committerRobert Griesemer <gri@golang.org>2010-12-10 14:40:22 -0800
commit055650daa413b7a03fed224d08acc94186cb4d01 (patch)
treee70dbe2b338eda7f98af285d26d1fea7706b0426 /src/pkg/debug
parent9282a768cf8f4c1540a6c538ff36a916d2629232 (diff)
downloadgo-055650daa413b7a03fed224d08acc94186cb4d01.tar.xz
godoc: first cut at textual search
To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777 Enabling the fulltext index will use significantly more memory as the text of all source code, the respective suffixarray, and the file set data structure is kept in memory. At the moment there is about 6Mb of source code (~1400 files) indexed under GOROOT. Source code + suffix array together consume 5*(size of source) or about 30Mb. The file set data structure consumes about 4b/src line. By default only up to 5000 results are shown for now. The presentation of the results needs tuning. In particular, if a string is found, clicking on the respective file does not highlight them, yet. At the moment, only Go source files are indexed. Eventually, the full text index should encompass other files as well. R=rsc, adg CC=golang-dev https://golang.org/cl/3182043
Diffstat (limited to 'src/pkg/debug')
0 files changed, 0 insertions, 0 deletions