-
Notifications
You must be signed in to change notification settings - Fork 99
Comparing changes
Open a pull request
base repository: mitchellh/hashstructure
base: master
head repository: gohugoio/hashstructure
compare: master
- 18 commits
- 8 files changed
- 4 contributors
Commits on Jul 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6930051 - Browse repository at this point
Copy the full SHA 6930051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0599a27 - Browse repository at this point
Copy the full SHA 0599a27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c47e87 - Browse repository at this point
Copy the full SHA 8c47e87View commit details -
Remove the FormatV1/FormatV2 option
This is a new fork so we can start fresh.
Configuration menu - View commit details
-
Copy full SHA for 7c8cdd1 - Browse repository at this point
Copy the full SHA 7c8cdd1View commit details
Commits on Jan 12, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 1dee3c3 - Browse repository at this point
Copy the full SHA 1dee3c3View commit details -
Use MapRange() to iterate maps
``` │ master.bench │ fix-mapkeys.bench │ │ sec/op │ sec/op vs base │ Map-10 3.598µ ± 1% 3.058µ ± 0% -15.00% (p=0.002 n=6) │ master.bench │ fix-mapkeys.bench │ │ B/op │ B/op vs base │ Map-10 1.844Ki ± 0% 1.328Ki ± 0% -27.97% (p=0.002 n=6) │ master.bench │ fix-mapkeys.bench │ │ allocs/op │ allocs/op vs base │ Map-10 130.0 ± 0% 128.0 ± 0% -1.54% (p=0.002 n=6) ```Configuration menu - View commit details
-
Copy full SHA for d83ece6 - Browse repository at this point
Copy the full SHA d83ece6View commit details
Commits on Jan 13, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c72fe04 - Browse repository at this point
Copy the full SHA c72fe04View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7ecb6 - Browse repository at this point
Copy the full SHA ba7ecb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 669eafd - Browse repository at this point
Copy the full SHA 669eafdView commit details -
Compared to previous commit: ``` │ stash.bench │ fix-setiterval.bench │ │ sec/op │ sec/op vs base │ Map-10 3.159µ ± 1% 2.609µ ± 1% -17.44% (p=0.002 n=6) │ stash.bench │ fix-setiterval.bench │ │ B/op │ B/op vs base │ Map-10 1360.0 ± 0% 752.0 ± 0% -44.71% (p=0.002 n=6) │ stash.bench │ fix-setiterval.bench │ │ allocs/op │ allocs/op vs base │ Map-10 128.00 ± 0% 90.00 ± 0% -29.69% (p=0.002 n=6) ``` Compared to 1dee3c3: ``` │ 1dee3c3.bench │ fix-setiterval.bench │ │ sec/op │ sec/op vs base │ Map-10 3.608µ ± 1% 2.537µ ± 1% -29.68% (p=0.002 n=6) │ 1dee3c3.bench │ fix-setiterval.bench │ │ B/op │ B/op vs base │ Map-10 1888.0 ± 0% 752.0 ± 0% -60.17% (p=0.002 n=6) │ 1dee3c3.bench │ fix-setiterval.bench │ │ allocs/op │ allocs/op vs base │ Map-10 130.00 ± 0% 90.00 ± 0% -30.77% (p=0.002 n=6) ````Configuration menu - View commit details
-
Copy full SHA for 18d2e7b - Browse repository at this point
Copy the full SHA 18d2e7bView commit details
Commits on Feb 5, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 6495cb5 - Browse repository at this point
Copy the full SHA 6495cb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57e8e3b - Browse repository at this point
Copy the full SHA 57e8e3bView commit details
Commits on Feb 6, 2025
-
Some performance optimizations
* Avoid creating new `reflect.Value`s for common int, uint and bool types. * Use `io.WriteString` to write strings. This uses `io.StringWriter` if it exists, which is implemented by e.g. github.com/cespare/xxhash. Compared to master: ``` goos: darwin goarch: arm64 pkg: github.com/gohugoio/hashstructure cpu: Apple M1 Pro │ cmpmaster.bench │ perf-20250205.bench │ │ sec/op │ sec/op vs base │ Map-10 1.963µ ± 17% 1.291µ ± 13% -34.23% (p=0.002 n=6) String/default-10 80.90n ± 1% 84.41n ± 0% +4.34% (p=0.002 n=6) String/xxhash-10 54.83n ± 1% 40.12n ± 0% -26.82% (p=0.002 n=6) geomean 205.7n 163.5n -20.52% │ cmpmaster.bench │ perf-20250205.bench │ │ B/op │ B/op vs base │ Map-10 573.5 ± 22% 382.0 ± 13% -33.39% (p=0.002 n=6) String/default-10 56.00 ± 0% 56.00 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 48.00 ± 0% 16.00 ± 0% -66.67% (p=0.002 n=6) geomean 115.5 69.95 -39.45% ¹ all samples are equal │ cmpmaster.bench │ perf-20250205.bench │ │ allocs/op │ allocs/op vs base │ Map-10 57.50 ± 20% 37.00 ± 14% -35.65% (p=0.002 n=6) String/default-10 3.000 ± 0% 3.000 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 2.000 ± 0% 1.000 ± 0% -50.00% (p=0.002 n=6) geomean 7.014 4.806 -31.48% ``` Compared to `mitchellh/hashstructure`: ``` goos: darwin goarch: arm64 pkg: github.com/gohugoio/hashstructure cpu: Apple M1 Pro │ cmpfork.bench │ perf-20250205.bench │ │ sec/op │ sec/op vs base │ Map-10 2.789µ ± 6% 1.292µ ± 41% -53.69% (p=0.002 n=6) String/default-10 83.45n ± 0% 87.36n ± 1% +4.69% (p=0.002 n=6) String/xxhash-10 56.19n ± 0% 41.59n ± 1% -25.98% (p=0.002 n=6) geomean 235.6n 167.4n -28.94% │ cmpfork.bench │ perf-20250205.bench │ │ B/op │ B/op vs base │ Map-10 1461.0 ± 6% 393.0 ± 27% -73.10% (p=0.002 n=6) String/default-10 56.00 ± 0% 56.00 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 48.00 ± 0% 16.00 ± 0% -66.67% (p=0.002 n=6) geomean 157.8 70.62 -55.24% ¹ all samples are equal │ cmpfork.bench │ perf-20250205.bench │ │ allocs/op │ allocs/op vs base │ Map-10 87.50 ± 9% 36.50 ± 40% -58.29% (p=0.002 n=6) String/default-10 3.000 ± 0% 3.000 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 2.000 ± 0% 1.000 ± 0% -50.00% (p=0.002 n=6) geomean 8.067 4.784 -40.70% ````Configuration menu - View commit details
-
Copy full SHA for 72666c8 - Browse repository at this point
Copy the full SHA 72666c8View commit details -
Add a fast path for string inputs
``` │ master.bench │ perf-string.bench │ │ sec/op │ sec/op vs base │ String/default-10 86.98n ± 3% 77.57n ± 1% -10.82% (p=0.002 n=6) String/xxhash-10 40.10n ± 0% 34.82n ± 4% -13.19% (p=0.002 n=6) geomean 59.06n 51.97n -12.01% │ master.bench │ perf-string.bench │ │ B/op │ B/op vs base │ String/default-10 56.00 ± 0% 56.00 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 16.00 ± 0% 16.00 ± 0% ~ (p=1.000 n=6) ¹ geomean 29.93 29.93 +0.00% ¹ all samples are equal │ master.bench │ perf-string.bench │ │ allocs/op │ allocs/op vs base │ String/default-10 3.000 ± 0% 3.000 ± 0% ~ (p=1.000 n=6) ¹ String/xxhash-10 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=6) ¹ geomean 1.732 1.732 +0.00% ```Configuration menu - View commit details
-
Copy full SHA for 25de947 - Browse repository at this point
Copy the full SHA 25de947View commit details -
Add support for complex64/complex128
Support for complex64 was accidentally removed in 72666c8, complex128 is new. Now with tests.
Configuration menu - View commit details
-
Copy full SHA for bb88c16 - Browse repository at this point
Copy the full SHA bb88c16View commit details
Commits on Oct 9, 2025
-
Configuration menu - View commit details
-
Copy full SHA for cd1b72b - Browse repository at this point
Copy the full SHA cd1b72bView commit details -
Improve allocation performance
* improve reflect and option allocations * optimize binary writes for numbers * optimize string writes(#3) * optimize object wrapping * update go.mod to 1.20 to support unsafe string conversion
Configuration menu - View commit details
-
Copy full SHA for 1f6d247 - Browse repository at this point
Copy the full SHA 1f6d247View commit details -
Cleanup format info from comments (#11)
Format has been removed as an option, so removing the remaining traces from the codebase.
Configuration menu - View commit details
-
Copy full SHA for 8bd92a6 - Browse repository at this point
Copy the full SHA 8bd92a6View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master