diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-12-07 21:46:46 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-12-07 23:08:25 +0100 |
commit | 243694102a60da2fb1050020f68384539f9f9ef5 (patch) | |
tree | 09bc34367fae5a59c4851fdb4e4e31736bc58285 /hugolib/menu_test.go | |
parent | 31535261610b34131c68ec760db8b29cac1548dd (diff) |
Remove the goroutines from the shortcode lexer
It was clever, but storing the items in a slice is faster -- and it gives room to more goroutines in other places.
```bash
benchmark old ns/op new ns/op delta
BenchmarkShortcodeLexer-4 180173 79614 -55.81%
benchmark old allocs new allocs delta
BenchmarkShortcodeLexer-4 309 328 +6.15%
benchmark old bytes new bytes delta
BenchmarkShortcodeLexer-4 35456 47008 +32.58%
```
Diffstat (limited to 'hugolib/menu_test.go')
0 files changed, 0 insertions, 0 deletions