diff options
author | Carl <slxxls92@gmail.com> | 2016-03-08 16:51:13 +0000 |
---|---|---|
committer | Carl <slxxls92@gmail.com> | 2016-03-08 16:51:13 +0000 |
commit | d65c97ab48a1c015d8622e33311c7e2ea8fcd0e5 (patch) | |
tree | 2e7d130a11429bf98d1b5b5042e64d1912b43aee /StardewModdingAPI/Extensions.cs | |
parent | 38f59b079ec9f24c574d2681a41555038b291b03 (diff) | |
parent | 626452834fed7f15e20f2ecc0d4103be69621193 (diff) | |
download | SMAPI-d65c97ab48a1c015d8622e33311c7e2ea8fcd0e5.tar.gz SMAPI-d65c97ab48a1c015d8622e33311c7e2ea8fcd0e5.tar.bz2 SMAPI-d65c97ab48a1c015d8622e33311c7e2ea8fcd0e5.zip |
Merge pull request #16 from Jtfinlay/dev
Perf improvements
Diffstat (limited to 'StardewModdingAPI/Extensions.cs')
-rw-r--r-- | StardewModdingAPI/Extensions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StardewModdingAPI/Extensions.cs b/StardewModdingAPI/Extensions.cs index 7e849f12..c504f470 100644 --- a/StardewModdingAPI/Extensions.cs +++ b/StardewModdingAPI/Extensions.cs @@ -53,12 +53,12 @@ namespace StardewModdingAPI public static int GetHash(this IEnumerable enumerable) { - string s = string.Empty; + int hash = 0; foreach (var v in enumerable) { - s += v.GetHashCode().ToString(); + hash ^= v.GetHashCode(); } - return s.GetHashCode(); + return hash; } } }
\ No newline at end of file |