hugo/resources
Bjørn Erik Pedersen 022c479551
hugofs: Make FileMeta a struct
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct.

This is easier to reason about, and it's more effective:

```
name                                  old time/op    new time/op    delta
SiteNew/Regular_Deep_content_tree-16    71.5ms ± 3%    69.4ms ± 5%    ~     (p=0.200 n=4+4)

name                                  old alloc/op   new alloc/op   delta
SiteNew/Regular_Deep_content_tree-16    29.7MB ± 0%    27.9MB ± 0%  -5.82%  (p=0.029 n=4+4)

name                                  old allocs/op  new allocs/op  delta
SiteNew/Regular_Deep_content_tree-16      313k ± 0%      303k ± 0%  -3.35%  (p=0.029 n=4+4)
```

See #8749
2021-07-15 17:14:26 +02:00
..
images resources: Regenerate image golden testdata 2021-07-07 17:25:14 +02:00
internal all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page Add config.cascade 2021-07-10 11:13:41 +02:00
postpub media: Make Type comparable 2021-03-14 15:21:54 +01:00
resource images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
resource_factories hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
resource_transformers hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
testdata resources: Regenerate image golden testdata 2021-07-07 17:25:14 +02:00
image.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
image_cache.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
image_extended_test.go resources: Regenerate image golden testdata 2021-07-07 17:25:14 +02:00
image_test.go resources: Regenerate image golden testdata 2021-07-07 17:25:14 +02:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
resource_cache.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
resource_metadata_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_spec.go media: Make Type comparable 2021-03-14 15:21:54 +01:00
resource_test.go Fix Resource.ResourceType so it always returns MIME's main type 2020-12-17 22:20:12 +01:00
testhelpers_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
transform.go Split out the puthe path/filepath functions into common/paths 2021-06-18 10:55:00 +02:00
transform_test.go resources: Regenerate image golden testdata 2021-07-07 17:25:14 +02:00