1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00
Files
gohugoio-hugo/resources/page
Bjørn Erik Pedersen 653e6856ea resources/page: Use binary search in Pages.Prev/Next if possible
This is obviously much faster for lager data sets:

```bash
name                         old time/op    new time/op    delta
SearchPage/ByWeight-100-4       267ns ± 4%     272ns ± 5%     ~     (p=0.457 n=4+4)
SearchPage/ByWeight-5000-4     10.8µs ± 3%     1.2µs ± 2%  -88.99%  (p=0.029 n=4+4)
SearchPage/ByWeight-10000-4    21.1µs ± 1%     1.4µs ±11%  -93.28%  (p=0.029 n=4+4)
```

See #4500
2019-10-13 12:36:17 +02:00
..
2019-05-26 19:24:45 +02:00
2019-03-23 18:51:22 +01:00
2019-08-08 20:13:39 +02:00
2019-03-23 18:51:22 +01:00
2019-03-23 18:51:22 +01:00
2019-07-24 09:35:53 +02:00
2019-08-08 20:13:39 +02:00
2019-03-23 18:51:22 +01:00
2019-03-23 18:51:22 +01:00
2019-03-23 18:51:22 +01:00
2019-03-23 18:51:22 +01:00
2019-08-10 20:12:38 +02:00
2019-07-24 09:35:53 +02:00
2019-07-24 09:35:53 +02:00