gotta go fast

This commit is contained in:
tresabhi committed 2025-03-18 17:26:09 -05:00
1 parent 35894f39cf
commit 57d63ea1d7
9 files changed
+368 -668

No files matched your search

+7 -2
View File
@@ -13,6 +13,7 @@ namespace BlitzKit.CLI.Models
private static readonly int TIME_PER_BLOB = (int)Math.Pow(2, 4) * 10000;
private static readonly int TIME_BETWEEN_BLOBS = (int)(60 * 60 * 1000 / 5000 / 0.9);
private static readonly int MAX_TREE_SIZE = 7_000_000; // 7MB
private static readonly bool devMinimizeChecks = Env.GetBool("DEV_MINIMIZE_ASSET_CHECKS");
private readonly GitHubClient octokit = new(new ProductHeaderValue("MyAmazingApp"))
{
@@ -40,10 +41,14 @@ namespace BlitzKit.CLI.Models
);
changes.Add(change);
}
else if (devMinimizeChecks)
{
return;
}
else if (response.StatusCode == HttpStatusCode.OK)
{
int deltaSize = 0;
bool isDifferent = false;
int deltaSize;
bool isDifferent;
// hopefully they just give you the file size to delta from
if (response.Content.Headers.ContentLength.HasValue)