optimize: log parser

add: fast text reader to log parser
This commit is contained in:
Inanc Gumus
2019-08-07 13:24:15 +03:00
parent 450018748b
commit 4b2d2a3d6b
6 changed files with 168 additions and 49 deletions

View File

@@ -12,8 +12,7 @@ func pageGrouper(r result) string {
return r.domain + r.page
}
// you could have created a noopGrouper as well
// but it's not necessary i think (map allocation)
// groupBy allocates map unnecessarily
func noopGrouper(r result) string {
// with something like:
// return randomStrings()