Skip to content

Improve performance for gatheInfo func#115

Merged
teepark merged 1 commit intokelseyhightower:masterfrom
omosur:master
May 17, 2018
Merged

Improve performance for gatheInfo func#115
teepark merged 1 commit intokelseyhightower:masterfrom
omosur:master

Conversation

@omosur
Copy link
Contributor

@omosur omosur commented May 17, 2018

No description provided.

…e regexp compilation.

Benchmark result:

goos: linux
goarch: amd64
pkg: github.com/kelseyhightower/envconfig

benchmark                 old ns/op     new ns/op     delta
BenchmarkGatherInfo-4     756307        535401        -29.21%

benchmark                 old allocs     new allocs     delta
BenchmarkGatherInfo-4     349            251            -28.08%

benchmark                 old bytes     new bytes     delta
BenchmarkGatherInfo-4     64467         15425         -76.07%
@teepark
Copy link
Collaborator

teepark commented May 17, 2018

👍 thanks @johnnywidth!

@teepark teepark merged commit dd1402a into kelseyhightower:master May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants