transform/urlreplacers: Cache the next position of `urlreplacer.prefix`
authorHyeonGyu Lee <vazrupe@naver.com>
Tue, 6 Aug 2019 15:46:20 +0000 (00:46 +0900)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Aug 2019 15:46:20 +0000 (17:46 +0200)
commita843ca53b5e0f29df9535fa0e88408a63cdc2cd7
tree017b65e3b7b93159e1127fbc645bd4155e7c10db
parent02397e76cece28b467de30ff0cb0f471d9b212ee
 transform/urlreplacers: Cache the next position of `urlreplacer.prefix`

Improved performance due to `bytes.Index` repeated calls

Fixes #5942
transform/urlreplacers/absurlreplacer.go