-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #774 from unoplatform/dev/jela/restore-simd-option
Restore SIMD option
- Loading branch information
Showing
16 changed files
with
950 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Support for SIMD | ||
|
||
Starting from .NET 7, support for SIMD is available through the following property: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<WasmShellEnableSimd>true</WasmShellEnableSimd> | ||
</PropertyGroup> | ||
``` | ||
|
||
With .NET 8, SIMD support is enabled by default and can be disabled using: | ||
```xml | ||
<PropertyGroup> | ||
<WasmShellEnableSimd>false</WasmShellEnableSimd> | ||
</PropertyGroup> | ||
``` | ||
|
||
[WebAssembly Support for SIMD](https://github.com/webassembly/simd) enables faster execution for specialized pieces of code, and .NET increasingly uses those instructions to make applications run faster. | ||
|
||
You can take a look at [this article](https://platform.uno/blog/safari-16-4-support-for-webassembly-fixed-width-simd-how-to-use-it-with-c/) for more information. | ||
|
||
## Restriction for the use of SIMD | ||
While SIMD is supported by all major browsers by default, some security modes can require disabling it. | ||
|
||
For instance, Microsoft Edge's [Enhanced Security mode](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-security-browse-safer) disables the use of SIMD, as well as iOS's [Lockdown mode](https://support.apple.com/en-us/HT212650). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-230 Bytes
(92%)
src/Uno.Wasm.StaticLinking.Shared/native/side.bc/1.2/st,simd/side.bc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.