Skip to content

Trim with Squash - #419

Merged
SimonCropp merged 1 commit into
mainfrom
squash
Oct 7, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
squash

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Adds Squash, which removes unreachable IL from each library straight after it compiles.

  • Argon, Argon.JsonPath and Argon.NodaTime set SquashInternalsVisibleTo to Honor, since the other libraries and the tests use their internals.
  • The linker's IL warnings that the trim analyzer already covers at compile time are added to NoWarn.
  • Version 0.38.1.

Argon.dll for net48 goes from 847,872 to 798,720 bytes, and for net10.0 from 544,768 to 537,600.

Unreachable IL is removed from each library at build time. Argon, Argon.JsonPath
and Argon.NodaTime honor InternalsVisibleTo, since the other libraries and the
tests use their internals. Version 0.38.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant