NOTE: pathSep is added if needed when the index object is created, this spares us a third string concatenation or worse a Sprintf call.
(id uint64)
| 39 | // NOTE: pathSep is added if needed when the index object is created, |
| 40 | // this spares us a third string concatenation or worse a Sprintf call. |
| 41 | func (i *Index) pathForID(id uint64) string { |
| 42 | return i.dataPath + strconv.FormatUint(id, 10) + DatFileExt |
| 43 | } |
| 44 | |
| 45 | func (i *Index) pathFor(record proto.Message) string { |
| 46 | return i.pathForID(i.driver.GetID(record)) |
no outgoing calls