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

fix: Not generate chunks with the same content (#17511)(CP: 24.1) #17522

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

mshabarov
Copy link
Contributor

Checks if a chunk has already been considered for a given list of imported modules and scripts. If so, it doesn't generate a new file, but only updates the the import file, linking all the route class hashes with the same chunk file.

Also adds dependencyTriggers and eager fields to the ChunkInfo hashCode and equals, as ChunkInfo is used widely in maps.

Adds extra debug logging to AbstractUpdateImports to understand better what takes most of the time in large projects.

Related-to #17234

(cherry picked from commit 74196a0)

Checks if a chunk has already been considered for a given list of imported modules and scripts.
If so, it doesn't generate a new file, but only updates the the import file, linking all the route class hashes with the same chunk file.

Also adds dependencyTriggers and eager fields to the ChunkInfo hashCode and equals, as ChunkInfo is used widely in maps.

Adds extra debug logging to AbstractUpdateImports to understand better what takes most of the time in large projects.

Related-to #17234

(cherry picked from commit 74196a0)
caalador
caalador previously approved these changes Aug 31, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mshabarov mshabarov enabled auto-merge (squash) August 31, 2023 06:28
@github-actions
Copy link

Test Results

   999 files  ±0     999 suites  ±0   1h 6m 37s ⏱️ + 4m 44s
6 342 tests +1  6 301 ✔️ +1  41 💤 ±0  0 ±0 
6 590 runs   - 2  6 544 ✔️ ±0  46 💤  - 2  0 ±0 

Results for commit 08c4e60. ± Comparison against base commit b8d6fbd.

@mshabarov mshabarov merged commit dee6e8e into 24.1 Aug 31, 2023
25 of 26 checks passed
@mshabarov mshabarov deleted the lazy-chunk-optimisation branch August 31, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants