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

Use OptimizeForSize condition in SPC only on Browser #50413

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Mar 30, 2021

The size impact doesn't matter for tvOS.

It was only set for Browser/tvOS before.
@SingleAccretion
Copy link
Contributor

SingleAccretion commented Mar 30, 2021

See also #49372 for some of the rationale for this.

@akoeplinger
Copy link
Member Author

From @jkotas' comment on that PR:

Both Android and iOS phones are higher-end hardware. I would expect we want to keep the vectorized implementations for those.

I don't know what the size penalty is but we should definitely be consistent between iOS and tvOS, so maybe we'll need the size optimized version only for Browser.

@SingleAccretion
Copy link
Contributor

SingleAccretion commented Mar 30, 2021

I don't know what the size penalty is

I think it was 2KB compressed and 6KB raw - for IL. See #48006 (comment).
Will be different for native code of course, so maybe that's not very useful data for the Apple platforms that require AOT.

@akoeplinger akoeplinger changed the title Extend OptimizeForSize condition in SPC to iOS/Android Use OptimizeForSize condition in SPC only on Browser Mar 30, 2021
@akoeplinger
Copy link
Member Author

Ok thanks, I think that's negligible for mobile so I switched the condition to only apply to Browser.

@akoeplinger akoeplinger merged commit b23205f into dotnet:main Mar 30, 2021
@akoeplinger akoeplinger deleted the size-optimize branch March 30, 2021 16:52
@ghost ghost locked as resolved and limited conversation to collaborators Apr 29, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants