Skip to content

[DevLoop] Uno.dll's #US heap size is very large #20968

Description

@ebariche

What would you like to be added? 💡

Initial investigations indicate that #US consumes over 50% of Uno.dll's total size.

We believe that a significant contributor to this is "The member XXX is not implemented..." strings.

We should use a more efficient representation such as UTF8 string literals and/or string interpolation.

This new representation should work well with ILLink.

This affects other assemblies as well but to a lesser degree.

Why is this needed? 🤔

This would improve install size and restore time.

For which platforms 📱💻🖥️

All

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jul 7, 2025
  2. spouliot commented on Jul 10, 2025

    @spouliot
    Contributor

    Indeed!

    /opt/homebrew/opt/binutils/bin/strings -e b ./src/Samples/5.6/UnoAppBlank/UnoAppBlank/bin/Debug/net9.0-desktop/Uno.dll | grep "visit https://aka.platform.uno/notimplemented" | wc -l
    14573

    Strings are interned so you only have to make them unique to save (a lot of) space. This was done in dotnet (and the SDKs) with some helpers (some eventually became public).

    Done this way it also reduce the required IL (and JIT/AOT code) for all members (since a call requires less IL than constructing the exception in each method).

  3. added theissue type on Jul 14, 2025
  4. self-assigned this
    on Jul 14, 2025
  5. added
    difficulty/starter 🚀
    area/performance 📈
    and removed
    triage/untriaged
    difficulty/tbd
    on Oct 16, 2025
  6. github-actions commented on May 14, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  7. added
    stale
    on May 14, 2026
  8. removed
    stale
    on May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/performance 📈difficulty/starter 🚀kind/enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions