Skip to content

Stable codegen + caching the generated code. #638

@yujin-wu

Description

@yujin-wu

Issue

While working on CSP compliance for plotly, we had the challenge of avoiding codegen in regl. We found that some changes in Regl were necessary to make this possible, in particular making generated code stable.

The changes we needed are in #637 and I believe they are beneficial to regl:

  1. Make generated code for the same shader identical
  • across runs in any app and construction order
  • across all devices
  1. Cache for the generated code, which is practical now that a lot of generated code will be identical.
    The PR text has more details.

PR

#637

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions