Getting python binding takes a lot of time
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 155
- Avg merge
- 9h 42m
- Merged PRs (30d)
- 36
Description
Hi!
I faced with problem when using python graal. When i create context
Context.newBuilder()
.allowHostAccess(HostAccess.newBuilder(HostAccess.ALL).build())
.engine(ENGINE)
.allowAllAccess(true)
.build();
and then get python bindings
Value js = context.getBindings("python"); it takes about 5 seconds.
All times when i create new context and call getBindings it takes a lot of time.
In case of creating Context and calling context.getBindings("js") for javaScript it can take few seconds on first call but it executes less than second on another ones.
I use both JavaScript and Python scripts in one microservice. Docker image based on oracle/graalvm-ce:20.0.0-java11. Installed packages are llvm-toolchain-installable-java11-linux-amd64-20.0.0 and python-installable-svm-java11-linux-amd64-20.0.0.jar
Is it possible to work with python as fast as javaScript?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Context.newBuilder() setup and the context.getBindings("python") call described in the report, using the GraalVM 20.0.0 Docker image and installed Python packages. Compare repeated Python binding calls with the reported JavaScript behavior and measure startup times. Done means the source of the delay is identified and the Python binding latency is improved or clearly explained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100