Set BaseSize of interfaces to 0 (#89343)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sat, 22 Jul 2023 12:54:19 +0000 (21:54 +0900)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 12:54:19 +0000 (05:54 -0700)
commita2ce8773521a111154e30ab0abe292d9f38d13e6
tree68e11d4da84bb53c4cd8dccafa374c2de14f9fa4
parent2d1e28432105391f5e0d5a4573f7858fa9d798a7
Set BaseSize of interfaces to 0 (#89343)

We were computing these as the minimum object size. This number is meaningless because they don't get allocated on the GC heap. A zero compresses better. Surprisingly saves like 0.1% on Hello World despite being such an insignificant thing.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/EETypeNode.cs