 Andy Panandthinkerou
|
1bdf86b722
|
Remove the tedious named return value (#2620)
Co-authored-by: thinkerou <thinkerou@gmail.com>
|
2021-02-08 23:24:22 +08:00 |
|
Andy Pan
|
07c0f05f24
|
Renew README to fit the modification of SetCookie method (#2217)
fix #2214
|
2020-01-23 07:54:08 +08:00 |
|
 Andy PanandBo-Yi Wu
|
982daeb1ec
|
Use zero-copy approach to convert types between string and byte… (#2206)
* Use zero-copy approach to convert types between string and byte slice
* Rename argument to a eligible one
Benchmark:
BenchmarkBytesConvBytesToStrRaw-4 21003800 70.9 ns/op 96 B/op 1 allocs/op
BenchmarkBytesConvBytesToStr-4 1000000000 0.333 ns/op 0 B/op 0 allocs/op
BenchmarkBytesConvStrToBytesRaw-4 18478059 59.3 ns/op 96 B/op 1 allocs/op
BenchmarkBytesConvStrToBytes-4 1000000000 0.373 ns/op 0 B/op 0 allocs/op
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
|
2020-01-18 00:32:50 +08:00 |
|
Andy Pan
|
ace6e4c2ea
|
path: sync code with httprouter (#2212)
|
2020-01-16 22:40:59 +08:00 |
|
 Andy PanandBo-Yi Wu
|
025950afe9
|
Reuse bytes when cleaning the URL paths (#2179)
* path: use stack buffer in CleanPath to avoid allocs in common case
Sync from https://github.com/julienschmidt/httprouter/commit/8222db13dbb3b3ab1eb84edb61a7030708b93bfa
* path: sync test code from httprouter
* path: update path_test.go to the latest code
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
|
2020-01-07 17:37:18 +08:00 |
|