aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-09-01 17:27:21 +0200
committerBjørn Erik Pedersen <[email protected]>2019-09-02 16:37:28 +0200
commitce47c21a2998630f8edcbd056983d9c59a80b676 (patch)
tree01b7f680f631cc3418fa0e8457bff2b95a6f553d /hugolib/config.go
parentde9cbf61954201943a7b170a7d0a8b34afb5942c (diff)
downloadhugo-ce47c21a2998630f8edcbd056983d9c59a80b676.tar.gz
hugo-ce47c21a2998630f8edcbd056983d9c59a80b676.zip
resources: Cache Exif data to disk
```bash name old time/op new time/op delta ImageExif/Cold_cache-4 312µs ±28% 355µs ± 7% ~ (p=0.343 n=4+4) ImageExif/Cold_cache,_10-4 479µs ± 6% 546µs ± 0% +13.91% (p=0.029 n=4+4) ImageExif/Warm_cache-4 272µs ± 1% 81µs ± 5% -70.30% (p=0.029 n=4+4) name old alloc/op new alloc/op delta ImageExif/Cold_cache-4 151kB ± 0% 161kB ± 0% +6.46% (p=0.029 n=4+4) ImageExif/Cold_cache,_10-4 179kB ± 0% 189kB ± 0% +5.49% (p=0.029 n=4+4) ImageExif/Warm_cache-4 151kB ± 0% 13kB ± 0% -91.52% (p=0.029 n=4+4) name old allocs/op new allocs/op delta ImageExif/Cold_cache-4 1.03k ± 0% 1.21k ± 0% +17.78% (p=0.029 n=4+4) ImageExif/Cold_cache,_10-4 1.65k ± 0% 1.83k ± 0% +11.09% (p=0.029 n=4+4) ImageExif/Warm_cache-4 1.03k ± 0% 0.28k ± 0% -72.40% (p=0.029 n=4+4) ``` Fixes #6291
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 2c46a2f32..35724ec41 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -631,7 +631,7 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("disableAliases", false)
v.SetDefault("debug", false)
v.SetDefault("disableFastRender", false)
- v.SetDefault("timeout", 10000) // 10 seconds
+ v.SetDefault("timeout", 15000) // 15 seconds
v.SetDefault("enableInlineShortcodes", false)
return nil