mirror of
https://github.com/spf13/viper.git
synced 2024-12-28 14:21:24 -07:00
382f87b929
Also avoid doing a strings.Split in the Get common case. Any TRACE statements in these hot paths must be totally turned off when not testing. ``` benchmark old ns/op new ns/op delta BenchmarkGetBool-4 4090 409 -90.00% BenchmarkGetBoolFromMap-4 6.33 6.28 -0.79% benchmark old allocs new allocs delta BenchmarkGetBool-4 6 3 -50.00% BenchmarkGetBoolFromMap-4 0 0 +0.00% benchmark old bytes new bytes delta BenchmarkGetBool-4 129 33 -74.42% BenchmarkGetBoolFromMap-4 0 0 +0.00% ``` Fixes #242
24 lines
266 B
Plaintext
24 lines
266 B
Plaintext
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
|
*.o
|
|
*.a
|
|
*.so
|
|
|
|
# Folders
|
|
_obj
|
|
_test
|
|
|
|
# Architecture specific extensions/prefixes
|
|
*.[568vq]
|
|
[568vq].out
|
|
|
|
*.cgo1.go
|
|
*.cgo2.c
|
|
_cgo_defun.c
|
|
_cgo_gotypes.go
|
|
_cgo_export.*
|
|
|
|
_testmain.go
|
|
|
|
*.exe
|
|
*.test
|
|
*.bench |