Cache of the valid channel name regex

* Added a Benchmark to verify the performance
* Now it is 10 times faster
This commit is contained in:
claudemiro
2016-01-23 22:25:14 -02:00
parent 56da1dea01
commit 517462a7af
3 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ run-debug: debug
${GOPATH}/bin/ipe --config ${GOPATH}/src/github.com/dimiro1/ipe/config.json -logtostderr=true -v=2
test:
GO15VENDOREXPERIMENT=1 go test `go list ./... | grep -v vendor`
GO15VENDOREXPERIMENT=1 go test -bench . `go list ./... | grep -v vendor | grep -v functional | grep -v github.com/dimiro1/ipe$$`
dev-deps:
go get github.com/pusher/pusher-http-go