Replies: 2 comments 7 replies
-
What you can do, is run all of the functions in the same enclave, if that makes sense security-wise in your scenario. |
Beta Was this translation helpful? Give feedback.
-
What actually happens is that there is a new Gramine enclave created every time you perform "function execution". This is clearly suboptimal, as there seems to be no reason to create a new enclave for each invocation. How exactly does your Node.js perform this "function execution"? There seems to be some
Actually, this was a confusing message for many users. After release v1.2, we changed this line to a more meaningful: You could actually see that TOML parsing is not taking that much time, by enabling
Your use case makes sense. But as I mentioned earlier, for some reason your Node.js application creates a new SGX enclave for each |
Beta Was this translation helpful? Give feedback.
-
I am trying to implement a service that accepts a Javascript (nodejs) function from a user and saves it. The user then calls the same function multiple times sending different function parameters each time and the service executes the function inside the enclave using Gramine (the function I am using is similar to this: https://github.com/gramineproject/examples/tree/master/nodejs).
In this scenario, the saved function file never changes. Currently, for every function execution, the TOML file is being parsed which seems to be a time-consuming operation.
(i.e. it takes a relatively long time (about 8 secs) between printing of these two statements in the terminal)
and
So I wanted to know if it is possible to somehow speed up this operation, especially, when the function doesn't change for every execution. I have the following questions:
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions