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

RuleEngine lazy initalization #822

Closed
rsoika opened this issue Apr 23, 2023 · 0 comments
Closed

RuleEngine lazy initalization #822

rsoika opened this issue Apr 23, 2023 · 0 comments
Labels
enhancement Jakarta EE 10 Jakarta EE 10 migration
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Apr 23, 2023

For performance reasons the init method should not directly create a org.graalvm.polyglot.Context

This is only necessary if eval or putMember is called. In most cases the RuleEngine is only created but not used. This is due to the fact that the RuleEngine is RequestScoped.

@rsoika rsoika added enhancement Jakarta EE 10 Jakarta EE 10 migration labels Apr 23, 2023
@rsoika rsoika added this to the 6.0.3 milestone Apr 23, 2023
rsoika added a commit that referenced this issue Apr 23, 2023
rsoika added a commit that referenced this issue Apr 24, 2023
@rsoika rsoika closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Jakarta EE 10 Jakarta EE 10 migration
Projects
None yet
Development

No branches or pull requests

1 participant