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
田欧
1f59bad84b
add an edge case from httprouter ( #1407 )
2018-06-23 11:06:27 +08:00
田欧
eeb57848ca
update assert param(expect, actual) position ( #1177 )
2017-11-21 21:18:45 +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
766493c916
Fixes all unit tests
2015-05-31 22:35:49 +02: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
0a192fb0fa
Tons of unit tests
2015-04-09 12:15:02 +02:00
Manu Mtz-Almeida
3faa81a464
Removes unit test in performance branch temporarily.
2015-03-31 21:53:38 +02:00
Manu Mtz-Almeida
2915fa0ffe
Zero allocation router, first commit
2015-03-31 21:39:06 +02:00