diff options
| author | Berkan Diler <berkan.diler1@ingka.ikea.com> | 2022-12-24 18:30:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-24 14:30:39 -0300 |
| commit | 37d27c4c99486312d9a282d7fc056c657efe0848 (patch) | |
| tree | 51b77d6c112064039ed1eadb279251da6039cbc4 /ARMeilleure | |
| parent | f906eb06c28880c20160cb4a969e3f6fddb3029b (diff) | |
Some minor cleanups and optimizations (#4174)
* Replace Array.Clear(x, 0, x.Length) with Array.Clear(x)
* Use DateTime.UnixEpoch field
* Replace SHA256.ComputeHash calls with static SHA256.HashData call
More performant and avoids the need to initialize a SHA256 instance.
Diffstat (limited to 'ARMeilleure')
| -rw-r--r-- | ARMeilleure/Translation/SsaConstruction.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/Translation/SsaConstruction.cs b/ARMeilleure/Translation/SsaConstruction.cs index f74d6c71..2b6efc11 100644 --- a/ARMeilleure/Translation/SsaConstruction.cs +++ b/ARMeilleure/Translation/SsaConstruction.cs @@ -140,7 +140,7 @@ namespace ARMeilleure.Translation } } - Array.Clear(localDefs, 0, localDefs.Length); + Array.Clear(localDefs); } } |
