0
0

minor optimization of upsidedown backIndexRowForDoc

This change might allow a smart enough golang compiler to perhaps
allocate a backIndexRow on the stack rather than the heap.
This commit is contained in:
Steve Yen 2017-01-07 11:49:42 -08:00
parent 89a1cefde1
commit 8b140d84c4

View File

@ -1008,7 +1008,7 @@ func init() {
func backIndexRowForDoc(kvreader store.KVReader, docID index.IndexInternalID) (*BackIndexRow, error) {
// use a temporary row structure to build key
tempRow := &BackIndexRow{
tempRow := BackIndexRow{
doc: docID,
}