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

Be ready for executing the same python code thousands of times #8

Open
ohumbel opened this issue Oct 12, 2024 · 0 comments
Open

Be ready for executing the same python code thousands of times #8

ohumbel opened this issue Oct 12, 2024 · 0 comments
Labels
requirement Requirements for replacing Jython with GraalPy

Comments

@ohumbel
Copy link
Owner

ohumbel commented Oct 12, 2024

In my old Jython world, I used to precompile python classes implementing a Java interface. Then - from this singleton compiled code (*.class) - I was able to create thousands of instances and call the methods of the Java interface on them. This prevented polluting the JVM Memory with a new *.class on every call.

The compiled code needs to be available across many java.lang.Threads.

@ohumbel ohumbel added the requirement Requirements for replacing Jython with GraalPy label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requirement Requirements for replacing Jython with GraalPy
Projects
None yet
Development

No branches or pull requests

1 participant