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

WIP: perf: reduce chunk map if remote entry chunk #2911

Open
wants to merge 20 commits into
base: chore/split-chunks-demo
Choose a base branch
from

Conversation

ScriptedAlchemy
Copy link
Member

Description

attempt to use async chunk map in remote entry and all chunk map in "host" runtimes

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • [] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Copy link

changeset-bot bot commented Aug 31, 2024

⚠️ No Changeset found

Latest commit: 235f9cc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Summary

Here is a concise summary of the pull request:

This pull request aims to optimize the performance of the RemoteRuntimeModule and ConsumeSharedRuntimeModule by introducing conditional logic to use a smaller chunk map for remote entry chunks, while maintaining the full chunk map for "host" runtimes. The changes attempt to reduce the amount of data that needs to be processed and transferred, which should improve overall performance. The pull request focuses on integrating these optimizations into the existing codebase, with the goal of enhancing the efficiency of the remote entry and shared runtime handling.

File Summaries
File Summary
packages/enhanced/src/lib/container/RemoteRuntimeModule.ts The code changes attempt to optimize the chunk map handling in the RemoteRuntimeModule. It introduces a conditional logic to use a smaller chunk map for remote entry chunks, while maintaining the full chunk map for "host" runtimes. This aims to improve performance by reducing the amount of data that needs to be processed and transferred.
packages/enhanced/src/lib/sharing/ConsumeSharedRuntimeModule.ts The code changes introduce an optimization to the ConsumeSharedRuntimeModule by using an async chunk map for remote entry chunks and a full chunk map for "host" runtimes. This aims to improve performance by reducing the amount of data that needs to be processed for the chunk map.

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

b314d42042a1bd6c3e93b533be0c75a0415b10ac...7c60d1f0f778754fc9f3158a95eb8aa54aad9cf9

Files Reviewed
  • packages/enhanced/src/lib/container/RemoteRuntimeModule.ts
  • packages/enhanced/src/lib/sharing/ConsumeSharedRuntimeModule.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

46ff6feb42d5efdba0a58a2039ae05e45e3ebf8c...7c60d1f0f778754fc9f3158a95eb8aa54aad9cf9

Files Reviewed
  • packages/enhanced/src/lib/container/RemoteRuntimeModule.ts
  • packages/enhanced/src/lib/sharing/ConsumeSharedRuntimeModule.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

7c60d1f0f778754fc9f3158a95eb8aa54aad9cf9...93d6502c54b65cfe4a72c92a597ca235ab664274

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 1

Configuration

Squadron Mode: essential

Commits Reviewed

93d6502c54b65cfe4a72c92a597ca235ab664274...56bd582171940e3f5f902942a0ecd24a1e58e37f

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

56bd582171940e3f5f902942a0ecd24a1e58e37f...472288f50c28988c627fbf385af9745f4c0ec516

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

472288f50c28988c627fbf385af9745f4c0ec516...23e818abcec501610400378e1a5c840624b199a2

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 3

Configuration

Squadron Mode: essential

Commits Reviewed

23e818abcec501610400378e1a5c840624b199a2...f9e146d240a5ca91a01a26361da005404520d409

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

f9e146d240a5ca91a01a26361da005404520d409...ed8b69a3c158edf06e354355688051772978c3f3

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

828daa284a097b95f5c8d726bc9f81741b0ff5c4...e82390482d54280d24466d158a45d93ec784f72e

Files Reviewed
  • packages/enhanced/src/lib/container/HoistContainerReferencesPlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • apps/3000-home/cypress/e2e/app.cy.ts
  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

e82390482d54280d24466d158a45d93ec784f72e...9a9f707a22c2ed96283940f4f1ef95edce0a4964

Files Reviewed
  • packages/enhanced/src/lib/container/HoistContainerReferencesPlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • apps/3000-home/cypress/e2e/app.cy.ts
  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

9a9f707a22c2ed96283940f4f1ef95edce0a4964...09129c1bb5e8099d3481dc8882197956a30fed75

Files Reviewed
  • packages/enhanced/src/lib/container/HoistContainerReferencesPlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • apps/3000-home/cypress/e2e/app.cy.ts
  • webpack/types.d.ts

Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

09129c1bb5e8099d3481dc8882197956a30fed75...e64f7ed97b45a89b1b78398a3a7d28e14458e96b

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • apps/3000-home/cypress/e2e/app.cy.ts
  • webpack/types.d.ts

# Conflicts:
#	packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Copy link
Contributor

@squadronai squadronai bot left a comment

Choose a reason for hiding this comment

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

Incremental Review

Comments posted: 0

Configuration

Squadron Mode: essential

Commits Reviewed

e64f7ed97b45a89b1b78398a3a7d28e14458e96b...98afaffc308922ee3b46faea7cfa598d3dd1c99f

Files Reviewed
  • packages/enhanced/src/lib/container/runtime/FederationRuntimePlugin.ts
Files Ignored

These files were ignored due to the filter in the squadron.yaml file.

  • apps/3000-home/cypress/e2e/app.cy.ts
  • webpack/types.d.ts

@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 8, 2024
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.

2 participants