fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

remove ZOEKT_ENABLE_LAZY_DOC_SECTIONS (#620)

This feature has been disabled by default for a long time.

Test Plan: CI

+3 -15
+1 -2
indexdata.go
··· 43 43 docSectionsStart uint32 44 44 docSectionsIndex []uint32 45 45 46 - runeDocSections []DocumentSection 47 - runeDocSectionsRaw []byte 46 + runeDocSections []DocumentSection 48 47 49 48 // rune offset=>byte offset mapping, relative to the start of the content corpus 50 49 runeOffsets runeOffsetMap
+1 -8
matchtree.go
··· 989 989 } 990 990 991 991 if substr, ok := subMT.(*substrMatchTree); ok { 992 - // We have a feature flag for lazy decoding. If runeDocSectionsRaw is 993 - // non-nil it means we need to lazily decode on request. 994 - sections := d.runeDocSections 995 - if sections == nil && d.runeDocSectionsRaw != nil { 996 - sections = unmarshalDocSections(d.runeDocSectionsRaw, nil) 997 - } 998 - 999 992 return &symbolSubstrMatchTree{ 1000 993 substrMatchTree: substr, 1001 994 patternSize: uint32(utf8.RuneCountInString(substr.query.Pattern)), 1002 995 fileEndRunes: d.fileEndRunes, 1003 996 fileEndSymbol: d.fileEndSymbol, 1004 - sections: sections, 997 + sections: d.runeDocSections, 1005 998 }, nil 1006 999 } 1007 1000
+1 -5
read.go
··· 328 328 return nil, err 329 329 } 330 330 331 - if os.Getenv("ZOEKT_ENABLE_LAZY_DOC_SECTIONS") != "" { 332 - d.runeDocSectionsRaw = blob 333 - } else { 334 - d.runeDocSections = unmarshalDocSections(blob, nil) 335 - } 331 + d.runeDocSections = unmarshalDocSections(blob, nil) 336 332 337 333 var runeOffsets, fileNameRuneOffsets []uint32 338 334