]> Cypherpunks repositories - gostls13.git/commit
index/suffixarray: 4.5x faster index serialization (to memory)
authorRobert Griesemer <gri@golang.org>
Fri, 30 Sep 2011 18:31:28 +0000 (11:31 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 30 Sep 2011 18:31:28 +0000 (11:31 -0700)
commita7a7cc5a55690350eeee4d1aa26ca460f61c4b56
treef2e9cc5904b88d4c5535a6ac6cd51304e9b28aed
parent40c26fff1490f68cbb2d6a7942443df567e9bab4
index/suffixarray: 4.5x faster index serialization (to memory)

Benchmark results (best of 3 runs):

old: suffixarray.BenchmarkSaveRestore        1 1931909000 ns/op   28.21 MB/s
new: suffixarray.BenchmarkSaveRestore        5  429721800 ns/op  117.14 MB/s

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5161043
src/pkg/index/suffixarray/suffixarray.go
src/pkg/index/suffixarray/suffixarray_test.go