Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor template policy module form cue to go code #17

Open
yusank opened this issue Apr 4, 2023 · 0 comments
Open

Refactor template policy module form cue to go code #17

yusank opened this issue Apr 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yusank
Copy link
Contributor

yusank commented Apr 4, 2023

Is your feature request related to a problem? Please describe.
There are some performance issues when execute huge cue code and it seems didn't solve any problem when we use render template to cue code.

Describe the solution you'd like
We should handle template logic during runtime, since all template logic are predictable and there are less performance issues when we use go. We can define a interface like this:

type TemplateExecuter interface {
    Execute(ctx context.Context, obj any, t Template) error
}

and we implement it based on template type, instead of render and excute cue.

Describe alternatives you've considered

Additional context

@yusank yusank added the enhancement New feature or request label Apr 4, 2023
@yusank yusank self-assigned this Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant