FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

Improve efficiency of lambda execution #2732

Open lyleschemmerling opened 5 months ago

lyleschemmerling commented 5 months ago

Improve efficiency of lambda execution

Description

While doing some research in the implementation of the Graal JS execution engine I think that we can do things more efficiently and gain some performance. We currently build up a new org.graalvm.polyglot.Context for each invocation of the lambda that we run. I think that if we can cache this context and reuse it should save us a lot of the time spent in building that up. However, I don't believe it to be threadsafe so we will need to take that into account when implementing this.

Related

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.