Skip to content

Instantly share code, notes, and snippets.

@agyryk
Created October 21, 2016 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agyryk/3338720e8226d2a282040a0aad29fcf2 to your computer and use it in GitHub Desktop.
Save agyryk/3338720e8226d2a282040a0aad29fcf2 to your computer and use it in GitHub Desktop.
date facets query - Memory
OUTINE ======================== github.com/blevesearch/bleve/index/upsidedown.(*BackIndexRowValue).Unmarshal in /home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/upsidedown/upsidedown.pb.go
2MB 2.50MB (flat, cum) 0.52% of Total
. . 318: return ErrInvalidLengthUpsidedown
. . 319: }
. . 320: if postIndex > l {
. . 321: return io.ErrUnexpectedEOF
. . 322: }
2MB 2MB 323: m.TermEntries = append(m.TermEntries, &BackIndexTermEntry{})
. 512.04kB 324: if err := m.TermEntries[len(m.TermEntries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
. . 325: return err
. . 326: }
. . 327: iNdEx = postIndex
. . 328: case 2:
. . 329: if wireType != 2 {
ROUTINE ======================== github.com/blevesearch/bleve/index/upsidedown.(*BackIndexTermEntry).Unmarshal in /home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/upsidedown/upsidedown.pb.go
512.04kB 512.04kB (flat, cum) 0.1% of Total
. . 136: }
. . 137: postIndex := iNdEx + int(stringLen)
. . 138: if postIndex > l {
. . 139: return io.ErrUnexpectedEOF
. . 140: }
512.04kB 512.04kB 141: s := string(data[iNdEx:postIndex])
. . 142: m.Term = &s
. . 143: iNdEx = postIndex
. . 144: hasFields[0] |= uint64(0x00000001)
. . 145: case 2:
. . 146: if wireType != 0 {
. . 147: return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType)
. . 148: }
. . 149: var v uint32
. . 150: for shift := uint(0); ; shift += 7 {
. . 151: if iNdEx >= l {
. . 152: return io.ErrUnexpectedEOF
. . 153: }
. . 154: b := data[iNdEx]
ROUTINE ======================== github.com/blevesearch/bleve/index/upsidedown.(*BackIndexRowValue).Unmarshal in /home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/upsidedown/upsidedown.pb.go
19662 19662 (flat, cum) 51.59% of Total
. . 318: return ErrInvalidLengthUpsidedown
. . 319: }
. . 320: if postIndex > l {
. . 321: return io.ErrUnexpectedEOF
. . 322: }
19662 19662 323: m.TermEntries = append(m.TermEntries, &BackIndexTermEntry{})
. . 324: if err := m.TermEntries[len(m.TermEntries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
. . 325: return err
. . 326: }
. . 327: iNdEx = postIndex
. . 328: case 2:
. . 329: if wireType != 2 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment