Skip to content

Comments

🎨 Improve type shrinking and apply it to type_map#328

Merged
elbeno merged 2 commits intointel:mainfrom
elbeno:improve-type-shrink
Feb 12, 2026
Merged

🎨 Improve type shrinking and apply it to type_map#328
elbeno merged 2 commits intointel:mainfrom
elbeno:improve-type-shrink

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Feb 10, 2026

Problem:

  • expand_t assumes its argument is shrunk. It should be the identity function if the argument is not shrunk, but expand the argument if it is shrunk.
  • type_map can get large, leading to symbol bloat and compilation slowdown.

Solution:

  • Add a shrinkwrap wrapper to distinguish types which have been shrunk from regular types.
  • Shrink the size of type_map symbols.

Problem:
- `expand_t` assumes its argument is shrunk. It should be the identity function
  if the argument is not shrunk, but expand the argument if it is shrunk.

Solution:
- Add a `shrinkwrap` wrapper to distinguish types which have been shrunk from
  regular types.
Problem:
- `type_map` can get large, leading to symbol bloat and compilation slowdown.

Solution:
- Shrink the size of `type_map` symbols.
Copy link
Contributor

@mjcaisse-intel mjcaisse-intel left a comment

Choose a reason for hiding this comment

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

"magic"

@elbeno elbeno merged commit 04e45cf into intel:main Feb 12, 2026
93 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants