Closed rayduan closed 1 year ago
If you're running docker on your M1 laptop, check that you're getting the arm64 image and not amd64. You can try to run the docker build and run commands with --platform linux/arm64
.
If you're running docker on your M1 laptop, check that you're getting the arm64 image and not amd64. You can try to run the docker build and run commands with
--platform linux/arm64
.
when i set option python.ForceImportSite true, it cost more, how can make it cost shorter
I don't know any direct way. Have you tried reusing the context in a thread local? The site import happens only during context initialization, so then it would only happen once per thread.
I don't know any direct way. Have you tried reusing the context in a thread local? The site import happens only during context initialization, so then it would only happen once per thread.
i any way to reusing the context when i bindings is not sure? so when i used the context i need to restore the bindings .and what can i do to slove it?
What do you mean by "restore the bindings"? If you mean resetting them, you can delete the values with removeMember
.
hi,when i use java invoker python script with graalpython , i create 1000 task with 400 thread . when i use machine local it cost only 9003 ms, but when i build image and run with docker container ,it cost reach up to 35520 ms ,
![image](https://user-images.githubusercontent.com/21018866/228765622-d9bfc97d-5db4-4bf6-b0c3-7564a4943821.png)
this is my dockerfile
is any way to improve my performance