Select the types of activity you want to include in your feed.
Avoid allocating filename when checking if a document is tombstoned (#400)
The compiler recognises m[string(b)] and can use the value of the byte slice directly when performing a map lookup without needing to allocate the string
···231231 }
232232233233 // Skip documents that are tombstoned
234234- // TODO: This FileTombstones implementation (looking up by filenames) creates a lot of small allocations
235235- // (string filenames) and can have poor cache performance. This should be addressed before we officially
236236- // roll this out.
237234 if len(repoMetadata.FileTombstones) > 0 {
238238- fileName := string(d.fileName(nextDoc))
239239- if _, tombstoned := repoMetadata.FileTombstones[fileName]; tombstoned {
235235+ if _, tombstoned := repoMetadata.FileTombstones[string(d.fileName(nextDoc))]; tombstoned {
240236 continue
241237 }
242238 }