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

Partial redeclaration - Performance issue #145

Open
vd3d opened this issue Dec 29, 2023 · 0 comments
Open

Partial redeclaration - Performance issue #145

vd3d opened this issue Dec 29, 2023 · 0 comments

Comments

@vd3d
Copy link

vd3d commented Dec 29, 2023

Hi,

I use multiple calls to 'evaluate':

1 - To define a kind of SDK, it is made of a lot of classes, methods etc... it is huge.
2 - Send some data to process: it can be refreshed on some condition (it is a static variable, a big array of values)
3 - Evaluate some code a lot of times (several thousands of calls to the same method)

So, mainly 3 "evaluates". It works but each time I have to create a new runtime, then call the 3 evaluates.
It is not very performant, it is slow.

So, my goal would be to always use the same runtime, but I got the following error message "SyntaxError: redeclaration of 'candles'"
The problem is that it redefines an existing method or variables.

I have found no way to clear or redefine anything. Do you think it is possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant