Skip to content

Pure functions for thunks with constant scalar values #1591

@raviqqe

Description

@raviqqe

Problem

  • Global thunks cannot be inlined because they are stateful and requires synchronization.
  • This prevents later optimization, such as SCCP.

Solution

  • Make global thunks that return constant scalar values pure functions.
  • Scalar values include boolean, none, number, and string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions