Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shrink Fast USDC core eval bundle #11004

Merged
merged 3 commits into from
Feb 13, 2025
Merged

shrink Fast USDC core eval bundle #11004

merged 3 commits into from
Feb 13, 2025

Conversation

turadg
Copy link
Member

@turadg turadg commented Feb 13, 2025

incidental

Description

https://ping.pub/agoric/gov/87 had a surprisingly large core-eval bundle: https://github.com/Agoric/agoric-sdk/releases/tag/fast-usdc-beta-1

The reason was that it imported typeguards from the barrel export of @agoric/orchestration, which entrained@agoric/cosmic-proto. All it really needed was typeGuards.js so this imports that module by deep import.

Eventually we'll want an "exports" map for the package but that's out of scope.

Security Considerations

n/a

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

cd a3p-integration/proposals/b:beta-fast-usdc
../../scripts/build-submission.sh fast-usdc/start-fast-usdc.build.js submission --net A3P_INTEGRATION --noNoble

master
total size: 1636325

PR
total size: 586271

(64% reduction)

Upgrade Considerations

none

@turadg turadg requested a review from dckc February 13, 2025 21:45
@turadg turadg requested a review from a team as a code owner February 13, 2025 21:45
Copy link

cloudflare-workers-and-pages bot commented Feb 13, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: e41132d
Status: ✅  Deploy successful!
Preview URL: https://ab432a4b.agoric-sdk.pages.dev
Branch Preview URL: https://ta-fast-usdc-bloat.agoric-sdk.pages.dev

View logs

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this shrinks the core eval from 2MB to 500K - 1/4 its former size.

nice.

@turadg turadg force-pushed the ta/fast-usdc-bloat branch from 6d1b9de to e41132d Compare February 13, 2025 22:23
@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Feb 13, 2025
Copy link
Contributor

mergify bot commented Feb 13, 2025

This pull request has been removed from the queue for the following reason: checks failed.

The merge conditions cannot be satisfied due to failing checks:

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.

If you want to requeue this pull request, you need to post a comment with the text: @mergifyio requeue

@turadg turadg added the bypass:integration Prevent integration tests from running on PR label Feb 13, 2025
@mergify mergify bot merged commit 8ef3fde into master Feb 13, 2025
102 of 105 checks passed
@mergify mergify bot deleted the ta/fast-usdc-bloat branch February 13, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge bypass:integration Prevent integration tests from running on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants