hugo-wasm/tpl
Bjørn Erik Pedersen de7137cc35 tpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge
Some relevant benchmarks:

Where with maps:

```
cpu: Apple M1 Pro
            │ master.bench │         fix-mapkeys.bench          │
            │    sec/op    │   sec/op     vs base               │
WhereMap-10    79.26µ ± 1%   26.58µ ± 1%  -66.46% (p=0.002 n=6)

            │ master.bench │         fix-mapkeys.bench         │
            │     B/op     │    B/op     vs base               │
WhereMap-10   56685.0 ± 0%   111.0 ± 1%  -99.80% (p=0.002 n=6)

            │ master.bench  │         fix-mapkeys.bench         │
            │   allocs/op   │ allocs/op   vs base               │
WhereMap-10   2003.000 ± 0%   4.000 ± 0%  -99.80% (p=0.002 n=6)
```

Merge:

```
         │ master.bench │         fix-mapkeys.bench          │
         │    sec/op    │   sec/op     vs base               │
Merge-10    3.285µ ± 0%   2.268µ ± 1%  -30.96% (p=0.002 n=6)

         │ master.bench │          fix-mapkeys.bench          │
         │     B/op     │     B/op      vs base               │
Merge-10   3.079Ki ± 0%   1.891Ki ± 0%  -38.58% (p=0.002 n=6)

         │ master.bench │         fix-mapkeys.bench         │
         │  allocs/op   │ allocs/op   vs base               │
Merge-10     64.00 ± 0%   26.00 ± 0%  -59.38% (p=0.002 n=6)
```
Sort:

```
cpu: Apple M1 Pro
           │ master.bench │         fix-mapkeys.bench         │
           │    sec/op    │   sec/op     vs base              │
SortMap-10   1008.0n ± 1%   915.5n ± 0%  -9.18% (p=0.002 n=6)

           │ master.bench │         fix-mapkeys.bench         │
           │     B/op     │    B/op     vs base               │
SortMap-10     640.0 ± 0%   512.0 ± 0%  -20.00% (p=0.002 n=6)

           │ master.bench │        fix-mapkeys.bench         │
           │  allocs/op   │ allocs/op   vs base              │
SortMap-10     16.00 ± 0%   15.00 ± 0%  -6.25% (p=0.002 n=6)
```
2025-01-13 16:24:48 +02:00
..
cast tpl/cast: Improve float 2024-08-06 22:26:43 +02:00
collections tpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge 2025-01-13 16:24:48 +02:00
compare tpl/compare: Use any data type for compare.Conditional condition 2024-09-22 16:53:11 +02:00
crypto Add hash.XxHash 2024-07-06 14:08:15 +02:00
css resources: Address Dart Sass deprecation of global built-in functions 2024-11-01 14:05:27 +01:00
data Consolidate all hashing to the common/hashing package 2024-07-31 16:44:06 +02:00
debug Add js.Batch 2024-12-12 21:43:17 +01:00
diagrams all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
encoding Add a page template func 2023-02-25 19:53:18 +01:00
fmt Add js.Batch 2024-12-12 21:43:17 +01:00
hash Replace the MD5 hashing of images with xxHash 2024-07-31 16:44:06 +02:00
hugo Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
images resources/images: Refactor golden image tests to locate them closer to the implementation 2025-01-11 18:27:53 +02:00
inflect Add a page template func 2023-02-25 19:53:18 +01:00
internal resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
js js: Fix js.Batch for multihost setups 2024-12-16 11:52:18 +01:00
lang Remove deprecations <= v0.122.0 (note) 2024-11-16 20:32:43 +01:00
math math: Add trigonometric functions and some angle helper functions 2024-07-29 11:05:36 +02:00
openapi testing: Rename integration_test.go to PACKAGE_integration_test.go 2024-01-28 11:41:59 +01:00
os testing: Rename integration_test.go to PACKAGE_integration_test.go 2024-01-28 11:41:59 +01:00
page tests: Address deprecation warnings and errors 2024-09-29 10:49:26 +02:00
partials Add try 2025-01-05 15:32:21 +01:00
path all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
reflect all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
resources resources: Replace error handling in GetRemote with try (note) 2025-01-06 12:22:17 +01:00
safe Add try 2025-01-05 15:32:21 +01:00
site all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
strings tpl/strings: Add TrimSpace function 2024-10-19 21:10:00 +02:00
templates templates: Fix handling of multiple defers in the same template 2025-01-09 07:59:25 +01:00
time all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
tplimpl tpl/tplimpl: Use plain text for image render hook alt attribute 2025-01-10 19:44:39 +02:00
transform Adjust error handling in ToMath vs try (note) 2025-01-09 11:47:19 +01:00
urls all: Fix duplicate words in comments 2024-04-11 09:31:33 +02:00
template.go Fix server edits of resources included in shortcode/hooks 2024-11-29 14:22:39 +01:00
template_info.go Create default link and image render hooks 2024-01-30 20:12:19 +01:00
template_test.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00