Commit Graph

14 Commits

Author SHA1 Message Date
thinkerou
b04917c53e
chore: upgrade golangci-lint and fix golangci-lint error (#3278) 2022-08-15 21:38:20 +08:00
thinkerou
54175dbe72
chore: update the result of CR (#2354)
* chore: update the result of CR

* Update utils.go

* Update utils.go

* Update context.go

* Update context.go
2020-05-04 11:40:41 +08:00
Bo-Yi Wu
64e6a7654f docs(path): improve comments (#2223)
* chore(path): improve comments

copy from 15782a78c6

* fix typo

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-01-28 11:38:45 +08:00
Andy Pan
ace6e4c2ea path: sync code with httprouter (#2212) 2020-01-16 22:40:59 +08:00
Andy Pan
025950afe9 Reuse bytes when cleaning the URL paths (#2179)
* path: use stack buffer in CleanPath to avoid allocs in common case

Sync from 8222db13db

* 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
田欧
8fc8ce0472 small enhance for cleanPath (#1469)
from httprouter patch: https://github.com/julienschmidt/httprouter/pull/243
2018-08-10 20:50:23 +08:00
田欧
1f59bad84b add an edge case from httprouter (#1407) 2018-06-23 11:06:27 +08:00
田欧
a8fa424ae5 update comment (#1057) 2017-08-16 11:55:50 +08:00
田欧
df67c64479
fix cleanPath spell (#969) 2017-07-04 10:10:28 +08:00
Javier Provecho Fernandez
80942e67a8 docs(license): add julienschmidt/httprouter license URL 2017-06-27 22:58:49 +02:00
Javier Provecho Fernandez
3b8150c83c Revert "unify license (#942)"
This reverts commit 53799774f4.
2017-06-27 22:54:42 +02:00
田欧
53799774f4 unify license (#942) 2017-06-12 04:01:09 -05:00
Manu Mtz-Almeida
835f66fdc9 404 not found performance improvements
benchmark            old ns/op     new ns/op     delta
Benchmark404         737           249           -66.21%
Benchmark404Many     2330          454           -80.52%

benchmark            old allocs     new allocs     delta
Benchmark404         3              0              -100.00%
Benchmark404Many     10             0              -100.00%

benchmark            old bytes     new bytes     delta
Benchmark404         115           68            -40.87%
Benchmark404Many     235           57            -75.74%
2015-05-30 14:45:13 +02:00
Manu Mtz-Almeida
2915fa0ffe Zero allocation router, first commit 2015-03-31 21:39:06 +02:00