Skip to content

Commit

Permalink
[ODS-6527] Optimize cached method invocation signature computations t…
Browse files Browse the repository at this point in the history
…o eliminate use of SOH (small object heap) (#1162)
  • Loading branch information
gmcelhanon authored Oct 16, 2024
1 parent 4a3af95 commit f404d81
Show file tree
Hide file tree
Showing 7 changed files with 660 additions and 192 deletions.
7 changes: 6 additions & 1 deletion Application/EdFi.Ods.Api/Middleware/TenantConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ public TenantConfiguration()
_hashBytes = new Lazy<byte[]>(GetHashIdBytes);
}

private byte[] GetHashIdBytes() => _tenantHashId.Value.GetBytes();
private byte[] GetHashIdBytes()
{
var buffer = new byte[8];
BitConverter.TryWriteBytes(buffer, _tenantHashId.Value);
return buffer;
}

private ulong ComputeHashId()
{
Expand Down
130 changes: 0 additions & 130 deletions Application/EdFi.Ods.Common/Caching/BytesExtensions.cs

This file was deleted.

Loading

0 comments on commit f404d81

Please sign in to comment.