Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[AssetMapper] Fixing memory bug where we stored way more file content than needed#52330

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@weaverryan
Copy link
Member

QA
Branch?6.4
Bug fix?yes (on Symfonycasts, without this,asset-map:compile takes >500mb of memory)
New feature?no
Deprecations?none
IssuesNone
LicenseMIT

Hi!

This drastically improves the memory footprint when ALL assets are built, which happens inasset-map:compile,debug:asset-map, etc. Blackfire is a huge fan!https://blackfire.io/profiles/compare/4eb36732-8805-4c49-b636-d4bf8f9e2b27/graph

The MAIN optimization by far is to setMappedAsset.content to null if the final, compiled content matches the source file's content. This is the case for the vast-majority of mapped assets, and so the result is MUCH less content stored in memory for no reason.

Thanks to@smnandre and his earlier PR, which allows for thenull content on mapped assets.

Cheers!

smnandre reacted with heart emoji
@nicolas-grekas
Copy link
Member

Thank you@weaverryan.

@nicolas-grekasnicolas-grekas merged commit415ad8c intosymfony:6.4Oct 27, 2023
@weaverryanweaverryan deleted the asset-mapper-memory-improvement branchOctober 27, 2023 16:24
This was referencedOct 29, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

4 participants

@weaverryan@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp