Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3727

Determine the layout algorithm for payloaded enums

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: None
    • Labels:

      Description

      Ahead of ABI Stability, determine the layout algorithm for multi-payload enums. The algorithm should try to rearrange payloads so as to coalesce cases and save space. This rearrangement can also improve performance and code size. For example, if ARC-ed payload components reside in the same location, operations like copy can be done directly on the values without extensive switching.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ematejska Ewa Matejska
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: