Skip to content

Refactor etag outputs and perf optimize - #65

Merged
blakeembrey merged 2 commits into
masterfrom
be/perf
Nov 20, 2026
Merged

blakeembrey merged 2 commits into
masterfrom
be/perf

Conversation

@blakeembrey

Copy link
Copy Markdown
Member

Building on #64, aiming for perf and improvements to the output:

  • Switch the base 32 for formatting numbers (slightly shorter output, no real perf change)
  • Switch to sha256 for hashing to reduce collision possibility (likely not an issue in the real world for serving the same file)
  • Use BigInt when formatting the mod timestamp, improves performance measurably
  • Use ~ as the new separator so it's easy to debug between v1 and v2 tags

@blakeembrey
blakeembrey added this pull request to stack #66 November 20, 2026 20:46
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6654c4c) to head (c2dcb40).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #65   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           22        23    +1     
  Branches        12        12           
=========================================
+ Hits            22        23    +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Base automatically changed from be/bigint to master November 20, 2026 22:30
@blakeembrey
blakeembrey merged commit b36a0fa into master Nov 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant