diff options
author | James Finlay <jtfinlay@ualberta.ca> | 2016-03-07 21:47:52 -0800 |
---|---|---|
committer | James Finlay <jtfinlay@ualberta.ca> | 2016-03-07 21:47:52 -0800 |
commit | 626452834fed7f15e20f2ecc0d4103be69621193 (patch) | |
tree | 2e7d130a11429bf98d1b5b5042e64d1912b43aee /StardewModdingAPI/Entities/SFarm.cs | |
parent | 38f59b079ec9f24c574d2681a41555038b291b03 (diff) | |
download | SMAPI-626452834fed7f15e20f2ecc0d4103be69621193.tar.gz SMAPI-626452834fed7f15e20f2ecc0d4103be69621193.tar.bz2 SMAPI-626452834fed7f15e20f2ecc0d4103be69621193.zip |
Perf improvements
- The original '+=' of the GetHash method was taking ~10% of CPU usage for the game. This should improve performance considerably.
- The next largest CPU usage we care about is the 'GetHash' method that gets called very often. Pulling the objects.GetHash() out will reduce hits on the method.
Diffstat (limited to 'StardewModdingAPI/Entities/SFarm.cs')
0 files changed, 0 insertions, 0 deletions