summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Extensions.cs
diff options
context:
space:
mode:
authorCarl <slxxls92@gmail.com>2016-03-08 16:51:13 +0000
committerCarl <slxxls92@gmail.com>2016-03-08 16:51:13 +0000
commitd65c97ab48a1c015d8622e33311c7e2ea8fcd0e5 (patch)
tree2e7d130a11429bf98d1b5b5042e64d1912b43aee /StardewModdingAPI/Extensions.cs
parent38f59b079ec9f24c574d2681a41555038b291b03 (diff)
parent626452834fed7f15e20f2ecc0d4103be69621193 (diff)
downloadSMAPI-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.cs6
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