Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Dec 9, 2022

  • default terser config for smaller size
  • fix ProducVersion
  • dotn't generate dummy linker functions

Makes dotnet.js Release uncompressed 342 162 bytes, 11 461 bytes smaller.

- fix ProducVersion
- dotn't generate dummy linker functions
@pavelsavara pavelsavara added this to the 8.0.0 milestone Dec 9, 2022
@pavelsavara pavelsavara requested review from kg, maraf and radical December 9, 2022 19:15
@pavelsavara pavelsavara self-assigned this Dec 9, 2022
@ghost
Copy link

ghost commented Dec 9, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • default terser config for smaller size
  • fix ProducVersion
  • dotn't generate dummy linker functions
Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript

Milestone: 8.0.0

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara marked this pull request as ready for review December 10, 2022 21:06
@pavelsavara pavelsavara requested a review from lewing as a code owner December 10, 2022 21:06
@pavelsavara pavelsavara merged commit d0a1ad2 into dotnet:main Dec 10, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 10, 2023
for (let linked_function of linked_functions) {
const fn_template = `return __dotnet_runtime.__linker_exports.${linked_function}.apply(__dotnet_runtime, arguments)`;
DotnetSupportLib[linked_function] = new Function(fn_template);
DotnetSupportLib[linked_function] = new Function("");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks calling into mono C functions on threads because replace_linker_placeholders is not installed there.

cc @kg @lambdageek @thaystg

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened #81268 for it

@pavelsavara pavelsavara deleted the wasm_terser branch September 2, 2024 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants