Skip to content

Vector128<T> is unnecessarily being left in a Blazor WASM default app #47860

Description

@eerhardt

When publishing a Blazor WASM app, the Vector128<T> type is being left in the published app. The only method that is using it is:

// We have paths for SSE4.1 vectorization inside the inner loop. Since the below
// vector is only used in those code paths, we leave it uninitialized if SSE4.1
// is not enabled.
Unsafe.SkipInit(out Vector128<short> nonAsciiUtf16DataMask);
if (Sse41.X64.IsSupported || (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian))
{
nonAsciiUtf16DataMask = Vector128.Create(unchecked((short)0xFF80)); // mask of non-ASCII bits in a UTF-16 char
}

We should try to refactor this code to not root the Vector128<T> Type in a Blazor WASM app.

Metadata

Metadata

Assignees

Labels

area-System.Text.Encodingsize-reductionIssues impacting final app size primary for size sensitive workloadsuntriagedNew issue has not been triaged by the area owner

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions